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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Crouchie
Thanks for the response, I'm assuming the VBA is the one you can choolse
while in word?
 
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
 
Back
Top