Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Color of custom button caption


I have created a cutom button with the following code. How do I change
the font color/size of the caption on the button? Please help.

With .Controls.Add(Type:=msoControlButton)

..Style = msoButtonCaption
..Caption = "Enter the name"
..Width = 35

End With


--
shashi1515
------------------------------------------------------------------------
shashi1515's Profile: http://www.excelforum.com/member.php...o&userid=31109
View this thread: http://www.excelforum.com/showthread...hreadid=513224

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Color of custom button caption

Right click the button. Then go to:
-Properties
-Backcolor (Click the drop down and pick your color)
-Caption (Click to change the name of the button
-Font to change the font
You can even add a picture to the button by clicking "Picture" Then
selecting a .jpg. You can also add Wordwrap, Lock the Button, add Shadow, and
change the MouseIcon when the pointer rolls over it.
--
Dr. M


"shashi1515" wrote:


I have created a cutom button with the following code. How do I change
the font color/size of the caption on the button? Please help.

With .Controls.Add(Type:=msoControlButton)

.Style = msoButtonCaption
.Caption = "Enter the name"
.Width = 35

End With


--
shashi1515
------------------------------------------------------------------------
shashi1515's Profile: http://www.excelforum.com/member.php...o&userid=31109
View this thread: http://www.excelforum.com/showthread...hreadid=513224


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
Getting Forms button caption Otto Moehrbach Excel Programming 3 September 11th 05 12:11 AM
Command Button Caption Qaspec Excel Programming 1 January 27th 05 03:30 PM
Caption of a button Dr_Phil Excel Programming 4 May 4th 04 09:13 PM
Toggle custom button caption Tummy Excel Programming 4 February 23rd 04 07:40 PM
Cannot Get Caption to show on custom toolbar button Rob Bovey Excel Programming 1 August 1st 03 02:38 AM


All times are GMT +1. The time now is 10:27 PM.

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"