Changing the text color on a commandbar button

F

freshforlife

I have defined a commandbar button as follows:

Dim Cbar As CommandBar
Dim Button As CommandBarButton

Set Button = Cbar.Controls.Add(msoControlButton)
With Button
..OnAction = ""
..Caption = "Sending Country"
..Style = msoButtonCaption
..Width = 100
..Enabled = False
..BeginGroup = True
End With

The default color of the caption is grey ( some kind of default
coinciding with the windows color). How do I change that default color
to something like black or something else.

Please help
 

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