Restores the Worksheet Menu Bar to its native state : CommandBar « Application « VBA / Excel / Access / Word
VBA / Excel / Access / Word
Data Type Functions
VBA / Excel / Access / Word
Restores the Worksheet Menu Bar to its native state
"Worksheet Menu Bar"
Related examples in the same category
Creating a Toolbar and display MsgBox in its action
Creating a Toolbar and assign its action
Get the type of CommandBars
Creating a Toolbar: AddRemoveButton
Add ControlButton to CommandBar
Add PopupControl to CommandBar
Set Control style, Action, group, faceid and caption
Show All Toolbar Controls
Show CommandBar Names
show/hide check symbol
Save list of all predefined commands and their ID numbers in a file
Shows or hides a command bar.
Inspecting a CommandBar
Display Control Detail
Translates a MsoControlType enumeration into a text description of the control type.
Finding Visible Controls with FindControls
Add a new commandbar
display shortcut menu with the ShowPopup method
Removes a toolbar specified by the name passed in
Creating a command bar: Set some properties when you create a new toolbar
Referring to command bars
Counting custom toolbars
The Protection property of a CommandBar object provides you with many options for protecting a CommandBar.
The Protection constants are additive: apply different types of protection with a single command
how your VBA code can change the position of a toolbar.
This toolbar exists only when the cell pointer falls within a given range
Removing all toolbars and then restoring them
Restore tool bar
displays the Caption property for the first Control object contained in the Standard toolbar, whose index is 3.
Rather than use an index number to refer to a control, you can use its Caption property setting
Listing the controls on a command bar
Listing all controls on all toolbars
Adding a control to a command bar
To delete a control from a CommandBar object, use the Delete method of the Controls collection
deletes a control that has a caption of SortButton.
sets the FaceId property of the first button on the MyToolbar toolbar image to 45, which is the code number for a mailbox icon.
Adjusting a control's Visible property
Changing a control's caption dynamically: Showing the user the current cell's number format
simply copies the NumberFormat property of the ActiveCell to the Caption property of the button control.
Attaching a drop-down list to a command bar
Replacing Excel's built-in menu with your own
Working with Shortcut Menus
Properties of CommandBar controls
The custom toolbar is removed with this procedure
Translates a MsoBarType enumeration into a text description of the bar type.
Translates a MsoBarPosition enumeration into a text description of the bar position.
Determines if a given command bar name exists
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.