![]() |
|
#2
|
|||
|
|||
|
]I don't see why your SaveDoc macro is not executed when you open the template.
You can try putting a stop in the AutoOpen macro then when your code hits the step, stop through (with the F8 key) and troubleshoot. Maybe the CustomDocumentProperties.Count is not = 0 [CODE]Sub AutoOpen() Stop If ActiveDocument.CustomDocumentProperties.Count = 0 Then ActiveDocument.CustomDocumentProperties.Add Name:="AlreadyProcessed", LinkToContent:=False, Value:=1, Type:=msoPropertyTypeBoolean FormatCaptions CentreFigures SaveDoc Selection.HomeKey Unit:=wdStory End If End Sub[/CODE |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| instance a new dotm file from a Word dotm file and save with new file name | David Peck | Word VBA | 3 | 08-18-2023 06:47 AM |
| Save a range of pages as PDF/New Word file with SaveAs Dialog box popup | smj.javid | Word VBA | 3 | 10-11-2021 04:11 AM |
save dialog box promt doesn't save file
|
brmveen | Word VBA | 2 | 11-04-2015 12:51 AM |
| Updating active R/O templates (dot) and macros (dotm) | gw1500se | Word | 0 | 05-27-2014 12:11 PM |
How to deactivate File Save dialog box
|
KIM SOLIS | Word | 3 | 12-15-2013 12:30 PM |