Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I have an Excell sheet that I send to diffrent users to complete a task. I have a vba code on workbook open event to hide toolbars and menubar. I code is : Application.CommandBars("Worksheet Menu Bar").Enabled = False Application.OnKey "%-" Application.CommandBars("Standard").Visible = False Application.CommandBars("Formatting").Visible = False Application.CommandBars("PROMT SmarTool").Visible = False Application.CommandBars("Control Toolbox").Visible = False But I am getting an error , because I don't know, what type of commandbars are open at the user level. If I take this code out from the workbook open event, my sheet runs perfect. Can some advise, a better way to write vba code to make all commandbars and menubar items invisible on workbook open and make them visible on workbook close Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Visual Basic Error Run Time Error, Type Mismatch | Excel Discussion (Misc queries) | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
Receiving run-time error only part of the time | Excel Discussion (Misc queries) | |||
run-time error '91'-Close Button error | Excel Discussion (Misc queries) | |||
Run time error 1004, General ODBC error | New Users to Excel |