C
Charlie
Would someone have some example code for renaming a button on a custom
toolbar called "schedule"?
toolbar called "schedule"?
Would someone have some example code for renaming a button on a custom
toolbar called "schedule"?
Hi Jean-Guy,
would you be so kind to shed a bit more light on this.
In the customize dialog there is no caption.property,
only "name".
In the object-browser for commandbarcontrol
there is no "name" property, only caption.
I got a button, which displays "test90a",
if the mouse pointer rests on that button.
With CommandBars("Test")
.Controls("test90a").Caption = "test90b"
End With
results in error 5: "invalid procedure call or argument"
The name of the button, as I get it from the
customize-dialog is "xxx".
With CommandBars("Test")
.Controls("xxx").Caption = "test90b"
End With
changes the name (!) of the button,
as displayed in the customize-dialog,
but not what is displayed,
if the mouse pointer rests on that button.
With CommandBars("Test")
MsgBox .Controls("xxx").Caption
End With
returns: "test90a"
I am confused.
I am not sure what you mean by "mouse pointer rests on that button"
and I am not convinced it is relevant in this case.
The UI uses "Name",
but in fact it is the .Caption property in the object library.