Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-06-2020, 04:12 PM
Guessed's Avatar
Guessed Guessed is offline Help to get a word document to send specific content via email using submit button Windows 10 Help to get a word document to send specific content via email using submit button Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email button in word document ajh19742000 Word 1 07-21-2019 02:18 AM
Help to get a word document to send specific content via email using submit button Submit Button Req that populates email address 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
Help to get a word document to send specific content via email using submit button VBA Code for a SUBMIT button in a Word form 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft