If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Add Multiple Attachments Sources using VBA in Word
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").Res ult, Type:=olByValue, _ .Add Source:=ActiveDocument.TextBox("TextBoxFile2").Res ult, Type:=olByValue, _ .Add Source:=ActiveDocument.TextBox("TextBoxFile3").Res ult, Type:=olByValue, _ .Add Source:=ActiveDocument.TextBox("TextBoxFile4").Res ult, Type:=olByValue .Send |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot remove defunct Contacts sources | Anteaus | Outlook - Using Contacts | 2 | March 14th 09 07:26 AM |
I RECEIVE SEVERAL OF THE SAME EMAIL FROM DIFFERENT SOURCES | CBURD | Outlook Express | 0 | January 11th 08 09:23 PM |
Word attachments in Outlook | Accept Creditcards on website | Outlook - Installation | 11 | August 6th 07 03:57 PM |
help needed, pls, with trusted sources | Uncle Vinnie | Outlook - General Queries | 3 | February 28th 07 01:35 PM |
How to direct output from Word mail merge to multiple Word documents | [email protected] | Outlook - General Queries | 3 | August 11th 06 04:10 AM |