Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to add an item to the Tools menu when I open a spreadsheet and then
delete it before the workbook closes. I've tried adding this code to the Workbook Open event. Private Sub Workbook_Open() CommandBars("Worksheet men bar").Controls("Tools").Controls.Add(Type:=msoCont rolButton).Caption="MyMenu" End Sub When I open the spreadsheet, I get an error 91: Object Variable or With block variable not set. This same codes works if I include it in the code I have for a userform I've defined to take inputs from the user. Ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
No Data Analysis item in Excel Tools menu. Now what? | Excel Worksheet Functions | |||
Adding a menu item to Excel | Excel Discussion (Misc queries) | |||
Adding Separator Menu Item - Excel 2003 | Excel Programming | |||
Adding a Menu Item into a sheet as a button | Excel Programming | |||
Adding a menu item right click menu when clicking on a single. | Excel Programming |