Re: Renaming a toolbar button by Charlie
Charlie
Thu Feb 09 11:20:30 CST 2006
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
"Jonathan West" wrote:
>
> "Charlie" <Charlie@discussions.microsoft.com> wrote in message
> news:C101E03D-676A-4F81-9BED-1F3DF10870FA@microsoft.com...
> > 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
>
>