... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Office Suite
38
You can use a name or index number to specify a menu bar or toolbar in the list of available menu
bars and toolbars in the Office application. However, you must use a name to specify a menu,
shortcut menu, or submenu (all of which are represented by command bar objects). This example
adds a new menu item to the bottom of the Tools menu. When a user clicks the new menu item, it
runs the procedure named "qtrReport."
Set newItem to make new command bar button at command bar "Tools"
set begin group of newItem to True
set caption of newItem to "Make Report"
set face id of newItem to 0
set OnAction of newItem to "qtrReport"
If two or more custom menus or submenus have the same name, command bar index returns the
first one.
Properties
bar position
Returns or sets the position of a command bar. Read/write.
Can be one of the following:
·
bar left
·
bar top
·
bar right
·
bar bottom
·
bar floating
·
bar pop up
·
bar menu
bar type
Returns the type of command bar. Read-only.
Can be one of the following:
·
normal command bar
·
menubar command bar
·
popup command bar
built in
True if the specified command bar or command bar control is a built-in command bar or
control of the container application. False if it's a custom command bar or control. Read-only.
Summary :
Can be one of the following: · bar left · bar top · bar right · bar bottom · bar floating · bar pop up · bar menu bar type Returns the type of command bar.
Tags :
menu,newitem,set,name,control,new,returns,bar,type,custom,index,application,following