View Single Post
 
Old 09-20-2022, 03:40 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 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

Zach
I think Paul misunderstood your question. Yes you can use a string (or xml value) from your actual document. You haven't provided enough details in order for us to give you the actual code update.

As an example since you are using xml mapping, you might want the contents of the first Content Control in the document to be part of the filename.
Code:
StrName = ActiveDocument.ContentControls(1).Range.Text & Format(Now, "YYYYMMDD")
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote