Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-14-2024, 09:53 AM
gmaxey gmaxey is offline Triggering Save As dialog box when updating a dotm file Windows 10 Triggering Save As dialog box when updating a dotm file Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

]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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



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
Triggering Save As dialog box when updating a dotm file 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
Triggering Save As dialog box when updating a dotm file How to deactivate File Save dialog box KIM SOLIS Word 3 12-15-2013 12:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:19 PM.


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