Returns or sets the caption to display for the menu item
Read-write property
object.Caption |
String
This caption property only works when the ToolItem object represents a menu item in a tool item's dropdown list.
Change the Caption of a menu item
ToolItem Example (VBScript) | Copy Code |
---|---|
In this example the custom menu item is located on the custom toolitem ("My Tool")'s dropdown list. We want to change its caption from "testitem" to a more meaningful one "Find Parks". Sub Dim Btn1 Set Btn1 = Application.ToolBars("My Toolbar")("My Tool")("testitem") Btn1.caption = "Find Parks" End Sub |