PC Review


Reply
Thread Tools Rate Thread

CommandBar Button parameters

 
 
Bill D.
Guest
Posts: n/a
 
      26th Mar 2004
Thanks to Bernie and jmoffat for help with creating a Commandbar. Now, I
still have a problem.

Where can I find a list of the parameters for creating the buttons?

Bernie's button was:

With myButton
.Caption = "Hello"
.Style = msoButtonIcon
.FaceId = 137
.Enabled = True
.OnAction = "SayHello"
End With

I want a button to have both text and an icon and to run a macro when
clicked. I've tried wading through the help files looking for Style,
FaceID, etc but no where have I found a list of what controls what. I
assume a button with text and an icon will be
..Style=.msoButton(something)and the text will be the .Caption. I've
tried IconText, TextIcon but nothing changes. Also by randomly plugging
in nembers for FaceID I've foumd a lot of different icons. Is there a
list somewhere of faceID icons?

Sorry to keep bothering everyone with these elementary questions

Bill

There are 10 types of people; those that understand binary and those
that don't.

Remove NOTME to reply direct

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Beto
Guest
Posts: n/a
 
      26th Mar 2004
Bill D. wrote:

> in nembers for FaceID I've foumd a lot of different icons. Is there a
> list somewhere of faceID icons?


Get the Face Identifier addin from John Walkenbach's page:

http://www.j-walk.com/ss/excel/files/developer.htm

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.
 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      26th Mar 2004
Bill,

You want .Style = msoButtonIconAndCaption, obvious eh?<vbg>

You can see the possibles by looking up the Style property in Help under
commandbar controls.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Bill D." <(E-Mail Removed)> wrote in message
news:us$(E-Mail Removed)...
> Thanks to Bernie and jmoffat for help with creating a Commandbar. Now, I
> still have a problem.
>
> Where can I find a list of the parameters for creating the buttons?
>
> Bernie's button was:
>
> With myButton
> .Caption = "Hello"
> .Style = msoButtonIcon
> .FaceId = 137
> .Enabled = True
> .OnAction = "SayHello"
> End With
>
> I want a button to have both text and an icon and to run a macro when
> clicked. I've tried wading through the help files looking for Style,
> FaceID, etc but no where have I found a list of what controls what. I
> assume a button with text and an icon will be
> Style=.msoButton(something)and the text will be the .Caption. I've
> tried IconText, TextIcon but nothing changes. Also by randomly plugging
> in nembers for FaceID I've foumd a lot of different icons. Is there a
> list somewhere of faceID icons?
>
> Sorry to keep bothering everyone with these elementary questions
>
> Bill
>
> There are 10 types of people; those that understand binary and those
> that don't.
>
> Remove NOTME to reply direct
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Bill D.
Guest
Posts: n/a
 
      26th Mar 2004
Beto, Thanks a big help.

Bob, Now it is.

Bill

There are 10 types of people; those that understand binary and those
that don't.

Remove NOTME to reply direct

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add button to commandbar to all workbooks within xla Franck Microsoft Excel Discussion 3 6th Oct 2005 06:29 AM
static commandbar Button =?Utf-8?B?SGFyaQ==?= Microsoft Excel Programming 0 22nd Jun 2004 10:50 AM
CommandBar Button pictures Vyyk Drago Microsoft Outlook VBA Programming 1 4th Mar 2004 05:54 PM
CommandBar button events Stee Microsoft Powerpoint 0 7th Jan 2004 12:46 PM
Add an image to a commandbar button Marc Microsoft Outlook Program Addins 3 27th Nov 2003 09:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 PM.