J
JBark
Hi,
How can this code be written to add multiple attachments using vba and Word
as my email editor. The first attachment is the active document itself, the
other 4 attachments have their full path names stored in a field in the
document. This is what I have but I'm getting a syntax error and I'm not sure
why. Any suggestions are greatly appreciated.
.Attachments.Add Source:=ActiveDocument.FullName, Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile1").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile2").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile3").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile4").Result,
Type:=olByValue
.Send
How can this code be written to add multiple attachments using vba and Word
as my email editor. The first attachment is the active document itself, the
other 4 attachments have their full path names stored in a field in the
document. This is what I have but I'm getting a syntax error and I'm not sure
why. Any suggestions are greatly appreciated.
.Attachments.Add Source:=ActiveDocument.FullName, Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile1").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile2").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile3").Result,
Type:=olByValue, _
.Add Source:=ActiveDocument.TextBox("TextBoxFile4").Result,
Type:=olByValue
.Send