Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As with your problem yesterday, we have to know what
mode = EssVGetGlobalOption(5) is, the For Next code is fine, i built the custom toolbar and everything, it is good. If i set mode to 4 i get warnings off, if i set it to 2 i get warnings on, so it has to be the EssVGetGlobalOption(5) that is causing the issue. -- -John Please rate when your question is answered to help us and others know what is helpful. "Nigel" wrote: I am trying to run this code on workbook open and get the above error message mode = EssVGetGlobalOption(5) For Each ctl In CommandBars("essoption").Controls If mode = 4 And (ctl.Caption Like "Warnings*") Then ctl.Caption = "Warnings Off" ElseIf mode = 2 And (ctl.Caption Like "Warnings*") Then ctl.Caption = "Warnings On" End If Next ctl the error is on the line For Each ctl In CommandBars("essoption").Controls thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime Error 91 Object variable or With block variable not set. | Excel Programming | |||
Need help with Error 'object variable or with block variable not set' | Excel Programming | |||
Getting inconsistent Error 91-Object variable or With block variable not set | Excel Programming | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming |