run time error 91 Object Variable or With Block Variable not set

C

champcf

I had Office 2000 and upgraded to Office 2003, now everytime I go to close a
document I created in Office 2000 i get the above error message - can anyone
give me any ideas what to do about this - everything works, it's just
aggrevating - I've read something about setting variables, but I have NO idea
what they are talking about

Help please
 
C

Crouchie1998

In VBA or VB prior to VB.NET, you needed to do:

Set objSomeVariable = New Bla Bla Bla

Without using the 'Set' keyword, you would get the error you are encountering

Then you need to destroy the object reference like so:

Set objSomeVariable = Nothing
 
C

champcf

Crouchie
Thanks for the response, I'm assuming the VBA is the one you can choolse
while in word?
 
C

champcf

Ok Crouchie, thanks again for the response, but this is all greek to me -
where do I change this and where do I find this? thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top