Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have code that shows a specific commanbar when a particular worksheet
is activated, then hides the commandbar when the spreadsheet is de-selected. I want to save the commandbar name so that when the spreadsheet is closed, the last commandbar will be hidden. But I'm getting the ever-present "Object or withblock variable not set" error. Here is the sheet code: Private Sub Worksheet_Activate() Application.CommandBars("Abuse").Visible = True cTBar.Name = "Abuse"<----ERROR Call TBarNameSave End Sub cTBar is publicly declared as a Commandbar. So why won't it accept the name? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Object Variable or With Block Variable Not Set" error help request | Excel Programming | |||
Excel VBA - Storing text in a variable, and "'Cells' of object _Global failed" | Excel Programming | |||
"Run-time error 91: Object variable or With block not set" | Excel Programming | |||
Ogilvy Help :) - "Object variable or With block variable not set" | Excel Programming | |||
Exel2000 VBA - Creating a Command Bar - Error: "Object Variable or With not Set" | Excel Programming |