Reply
 
Thread Tools Display Modes
  #1   Report Post  
champcf
 
Posts: n/a
Default run time error 91 Object Variable or With Block Variable not set

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
  #2   Report Post  
Crouchie1998
 
Posts: n/a
Default

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


"champcf" wrote:

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

  #3   Report Post  
champcf
 
Posts: n/a
Default

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

"Crouchie1998" wrote:

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


"champcf" wrote:

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

  #4   Report Post  
champcf
 
Posts: n/a
Default

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

"Crouchie1998" wrote:

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


"champcf" wrote:

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

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:59 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"