View Single Post
 
Old 04-19-2015, 11:35 PM
Unk Unk is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Apr 2015
Posts: 3
Unk is on a distinguished road
Default

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
When it was only in the second one, that's when it was vanishing. In both cases it was a .docm, I haven't changed anything about the way I was saving it.

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.
Reply With Quote