PC Review


Reply
Thread Tools Rate Thread

Changing the text color on a commandbar button

 
 
freshforlife
Guest
Posts: n/a
 
      14th Dec 2009
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


 
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
Changing text color and textbox color on Access Report Cindy Microsoft Access Reports 0 1st Dec 2010 05:15 PM
Can you vary the strikethrough color without changing text color Linmark10 Microsoft Word Document Management 2 16th Dec 2008 12:22 AM
Changing color in a button =?Windows-1252?Q?Jos=E9_Manuel_Ag=FCero?= Microsoft VB .NET 10 13th Dec 2003 12:00 PM
Changing color in a button =?Windows-1252?Q?Jos=E9_Manuel_Ag=FCero?= Microsoft ASP .NET 5 13th Dec 2003 12:00 PM
changing a button color amy Microsoft Excel Worksheet Functions 2 16th Sep 2003 02:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:49 AM.