Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Customizing toolbar buttons

I created some customized toolbars in Excel, and I'd like
to change the appearance of the buttons (background color,
font size, bold) so that it would stand out compared to
the regular Excel toolbars, can anybody tell me how to do
it? Below you'll find my code:

Set metricsbar = CommandBars.Add(Temporary:=True)
With metricsbar
.Name = "Metrics"
.Position = msoBarTop
.Visible = True
End With

Dim clearbutton As CommandBarControl
Set clearbutton = metricsbar.Controls.Add
(Type:=msoControlButton)
With clearbutton
.OnAction = "Clear_AIMSOutput"
.Caption = "Clear AIMS Output"
.Style = msoButtonCaption
End With

Thanks,
Alex.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Customizing toolbar buttons

Alex,

Why don't you add a FaceId. See John Walkenbach's utility at
http://j-walk.com/ss/excel/tips/tip67.htm to help find the values of the
FaceIds, which will give you a decent toolbar button image.


--

HTH

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

"Alex" wrote in message
...
I created some customized toolbars in Excel, and I'd like
to change the appearance of the buttons (background color,
font size, bold) so that it would stand out compared to
the regular Excel toolbars, can anybody tell me how to do
it? Below you'll find my code:

Set metricsbar = CommandBars.Add(Temporary:=True)
With metricsbar
.Name = "Metrics"
.Position = msoBarTop
.Visible = True
End With

Dim clearbutton As CommandBarControl
Set clearbutton = metricsbar.Controls.Add
(Type:=msoControlButton)
With clearbutton
.OnAction = "Clear_AIMSOutput"
.Caption = "Clear AIMS Output"
.Style = msoButtonCaption
End With

Thanks,
Alex.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customizing toolbar in Excel2007? mikelee101 Excel Discussion (Misc queries) 1 May 19th 09 07:59 PM
Customizing Excel Toolbar Tate Excel Discussion (Misc queries) 1 April 9th 07 04:43 PM
Customizing MSOffice 2K Format toolbar. Mubeen Excel Worksheet Functions 2 August 24th 05 06:30 AM
Customizing Toolbar Buttons Leo Minervini Excel Discussion (Misc queries) 0 April 6th 05 02:17 AM
Customizing Toolbar terri Excel Programming 1 February 11th 04 04:33 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"