Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yo are redifining ThsWrkBk with local scope, and this will take precedence
over the one you defined in your declarations. Dont (re)dim it in the proc. "Rick" wrote: What does object variable or with block variable not set really mean? I have the statement coded as thus: This part declared in declarations: Public ThsWrkBk As Workbook This part executed in a Public Static procedu Dim ThsWrkBk Set ThsWrkBk = ActiveWorkbook This part executed in a Public procedure using Public PostPymnt(ThsWrkBk, ShtNme) ThsWrkBk.Active |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Runtime Error '91' Object variable or With block variable not set | Excel Discussion (Misc queries) | |||
Need help with Error '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 | |||
Pivot Table - Object variable or with block variable not set? | Excel Programming |