View Single Post
 
Old 03-17-2018, 04:57 AM
mtagliaferri mtagliaferri is offline Windows Vista Office 2013
Novice
 
Join Date: Mar 2018
Posts: 2
mtagliaferri is on a distinguished road
Default

Thanks Charles,
I am a bit confused, I have created a template (Template Letter One) pasted your code changed the contentControl to Name and have Letter One in the title in Properties when I saveAs it will use the text in the title within the properties.
On the Template Letter two is an example of what I a trying to achieve:

when entering Name & Surname & StaffNumber & Date the document should be saved as:
Name Surname StaffNumber Date Letter Two

Where Name and surname and staff number are retireved by the controls text the date is retrieved from the date control and should be in the format YYYYMMDD and finaly the title from the title properties of the document.

On a different note where is the above code stored? I was trying to find it when I open the document under VB but cannot find it!
Attached Files
File Type: dotx Template Letter One.dotx (20.2 KB, 8 views)
File Type: dotx Template Letter Two.dotx (21.4 KB, 9 views)
Reply With Quote