Renaming a toolbar button

C

Charlie

Is there a way to programatically rename a toolbar button?
Can I then access the name of that button as a string in another sub code?
thanks,
ck
 
J

Jonathan West

Charlie said:
Is there a way to programatically rename a toolbar button?
Can I then access the name of that button as a string in another sub code?
thanks,
ck

Each toolbar button is a CommandbarButton object, a member of the
CommandbarControls collection of a CommandBar object. The CommandbarButton
has a range of properties, but Name is not one of them. Maybe you mean the
Caption? If so, yes the Caption property is read/write.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
C

Charlie

Oh, my toolbar is called Schedule. the button to change has the caption
"Worker".
thanks,
ck
 
C

Charlie

Yes, the caption is what I want to work with. Can someone give me a simple
example of how to change the caption name to MyString. And then how to
excess it for later use? I'm new at this.
thanks so much.
charlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top