![]() |
|
#1
|
||||
|
||||
![]()
This type of code should go into the document project and not the normal template, and that document must be saved as DOCM or DOTM.
![]()
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#2
|
|||
|
|||
![]()
Well that's interesting. That's how I had it originally. I saved it as a .docm, and when I opened it again, the code was gone. Which was what I was describing in the original post here. I would open the DOCM, the functionality was no longer working, and when I opened the Visual Basic Editor and looked at ThisDocument (under MyDocumentName), the code I had entered was no longer there.
Now I have it both there and in Normal, and it's still there when I open the docm again. The code is just as you show it, except now in both of these ThisDocument locations: Code:
Normal Microsoft Word Objects ThisDocument Project(MyDocumentName) Microsoft Word Objects ThisDocument I'll have more time to learn about this during the coming week, but it's good to have it working anyway, and I can go from there. Thanks. |
![]() |
|