Sending Emails with Attachments VBA

前端 未结 4 1572
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 19:09

I am trying to add an attachment functionality to my emails. My email code is working however the attachments are being sent as ATT00001.bin files.

The variable Form

4条回答
  •  忘掉有多难
    2021-01-19 19:35

    Don't use file:// etc., just the path. And backslashes.

    attachmentlnkvar = "C:\Users\desktopname\Desktop\" & Forms![frmMain]!TabCtl54.Pages("page56").Controls("subtblcontent").Form![attachmentlnk] & ".pdf"
    

提交回复
热议问题