![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
For your first question, try
.Subject = "WO: RFW " & ActiveDocument.SelectContentControlsByTag("System" )(1).Range.Text For the attachments, I would assume there are two ways to approach this: 1. Actually embed the attachments into the Word doc and then work out how to extract them for the email 2. Create a list of filepaths and then have the email attachments built from these filepath strings. Personally, I would expect the second method to be easier to code and less error prone. The browse function is not something you would find as a native function in the Content Controls but it could be coded and executed either by entering a Content Control or maybe by a button on the ribbon. The code to select a file is often called FilePicker and there are plenty of samples showing how you use it. You could start here FileDialog object (Office) | Microsoft Docs or do a search for other examples.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Email button in word document | ajh19742000 | Word | 1 | 07-21-2019 02:18 AM |
![]() |
phorsley | Word VBA | 1 | 10-17-2017 04:50 PM |
Submit to Email Command Button | rob7676 | Word VBA | 0 | 08-20-2015 05:05 AM |
![]() |
BlueMax | Word VBA | 3 | 08-07-2013 06:26 AM |
Adding an Email Button to a Word Document | maddoktor | Word | 0 | 12-01-2011 01:32 PM |