Add attachment with varying date in file name to Outlook mail

前端 未结 5 1503
无人共我
无人共我 2020-12-10 23:25

I have an Excel file named \"Home Audio for Planning (28-3-2013).

The date will change every day but the text will be the same.

How do I attach those files t

5条回答
  •  [愿得一人]
    2020-12-11 00:24

    With OutMail
        .To = ""
        .BodyFormat = olFormatHTML  '---Default
        .Attachments.Add ("C:\Users\Desktop\Test.txt")
        .Display
    End With
    

    If not.BodyFormat = olFormatHTMLfile will be attached in the mail body

提交回复
热议问题