Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with CustomizationContext in Word 2000 Script

Status
Not open for further replies.

ACH381

Technical User
Apr 3, 2002
49
US
I am using "CustomizationContext = ActiveDocument" in my scripts just before setting hot-keys. I have been using this for quite some time on lots of form templates that are used on several thousand computers in our agency with no problems. An associate got an new computer with Windows 2000 Pro (same as I am using), and now every time she exits Word when one one of my forms was open she gets an error that says: "Runtime error 5852. Requested object is not available".

When I comment out the line of code "CustomizationContext = ActiveDocument" the error doesn't show up on exit.

Does anyone have an idea how I can correct this on this one computer?
 
Additional Info.. I have found that if I modify the script to include
"CustomizationContext = ActiveDocument.AttachedTemplate" the error doesn't occur.

There must be some setting on this one computer that requires the ".Attached Template" argument.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top