View Single Post
 
Old 11-14-2019, 11:58 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Quote:
Originally Posted by Guessed View Post
I'm not understanding why this needs to run on AutoOpen.

After it has run once, what is the macro supposed to do on a second run? Doesn't the first run remove the text that any subsequent runs are looking to replace?
Good point, and it wasn't in my original macro, but I assume we are not getting the whole story and the footer appears to contain variable information that will need to be processed afresh each time, which suggests also that putting the code in the document rather than its template is not a good plan. This of course is the dilemma of only seeing part of the story.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote