![]() |
|
#2
|
||||
|
||||
|
Yes, and it's quite simple, using code like:
Code:
With ActiveDocument
.SaveAs2 FileName:="C:\Users\" & Environ("Username") & "\Documents\" & _
.SelectContentControlsByTitle("MyControl")(1).Range.Text & ".PDF", _
FileFormat:=wdFormatPDF
End With
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How can I save a Word Document as a PDF file with a merged field filename?
|
kp2009 | Word VBA | 5 | 08-27-2015 11:45 PM |
Auto update Filename field
|
Oliver Beirne | Word VBA | 4 | 10-19-2012 03:33 AM |
| Macro to populate a text form field based on dropdown selection | koloa | Word | 0 | 10-20-2011 11:52 AM |
Save Filename using Document Text
|
Knawl | Word | 11 | 10-10-2011 03:00 AM |
Selecting merge field based on whether or not text is present
|
amym | Mail Merge | 1 | 12-07-2010 05:14 AM |