Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Kingwood, Texas, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disappearing code (Word 97 SR2)

    I wrote a Document_New some time back & when I went to look at it today I couldn't find the code. I could see that a module had been created, but when I tried to view the code, the code window appeared empty. However, the Document_New runs just fine. I did make a backup of the template, and I can view the code just fine in the backup. I would suspect a prankster, but although the template is out on the network, nobody in my department does anything with VBA, so I really suspect this must be something I did myself. Can anyone help?

  2. #2
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: Disappearing code (Word 97 SR2)

    Hi,

    Document_New will normally not be found in a code module but in the "ThisDocument" part of the VBA construct. This is one of (many) differences from AutoNew.
    Charles Kyle Kenyon
    Madison, Wisconsin

  3. #3
    Lounger
    Join Date
    Jan 2001
    Location
    Kingwood, Texas, USA
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disappearing code (Word 97 SR2)

    Thanks! You'd think I'd remember that's where I *put* it in the first place, but no -- I'd slept since then!

    Margot Serlin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •