If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Object variable or With block variable not set (Error 91)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-23-06, 23:19
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
Object variable or With block variable not set (Error 91)

THis might be the most dummest question but i get this error even tho that specific variable is defined and set properly. Im dealing with more than one of these errors at random times when execute different stage of my project. Im dealing with visible property of worksheets. And sometimes it work sometimes it doesnt, any ideas.
Reply With Quote
  #2 (permalink)  
Old 08-24-06, 02:38
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
Quote:
Originally Posted by Amazing_Spiderman
THis might be the most dummest question but i get this error even tho that specific variable is defined and set properly. Im dealing with more than one of these errors at random times when execute different stage of my project. Im dealing with visible property of worksheets. And sometimes it work sometimes it doesnt, any ideas.

then probably is your reference causing the problem. did you develop and run program in different version of OS or office?

For example, if you developed your program in winxp with office2003, then run on win2k and office 2k, in the reference you will get Microsoft excel object 11.0 (this is for office2003) and office2k is using 9.0

this will happen even if you just open the excel template with xp, once it use 11.0, unless you manual set it back to 9.0, it will continue using 11.0 which might cause problem.

just check your reference, see if anything missing there. sometimes is some ocx that you r using that is missing
Reply With Quote
  #3 (permalink)  
Old 08-24-06, 13:18
norie norie is offline
Registered User
 
Join Date: Mar 2006
Posts: 163
Can you post the code?
Reply With Quote
  #4 (permalink)  
Old 08-24-06, 16:39
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
actually it was very simple I had to just reinitialize my sheets so it would load properly. its always good to look over it with a different look.
Reply With Quote
  #5 (permalink)  
Old 08-24-06, 22:41
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
so is working now?
Reply With Quote
  #6 (permalink)  
Old 08-25-06, 15:18
Amazing_Spiderman Amazing_Spiderman is offline
Registered User
 
Join Date: Aug 2006
Posts: 21
yes thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On