A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Change caption on a macro button



 
 
Thread Tools Display Modes
  #1  
Old April 21st, 2005, 12:05 AM
gbeard
external usenet poster
 
Posts: n/a
Default Change caption on a macro button

I've placed a macro command button on a sheet and Bernie helped me make this
single button do what I thought would take 4 buttons. Now this is the only
button I need and I need to change the caption. I can't find where I change
the properties of the command button. Can someone point me in the right
direction?
Thanks,

--
Gary Beard


  #2  
Old April 21st, 2005, 12:25 AM
Harald Staff
external usenet poster
 
Posts: n/a
Default

Hi Gary

It's the caption property:

Private Sub CommandButton1_Click()
CommandButton1.Caption = "You touched me there at " & Time
End Sub

HTH. best wishes Harald

"gbeard" skrev i melding
...
I've placed a macro command button on a sheet and Bernie helped me make

this
single button do what I thought would take 4 buttons. Now this is the

only
button I need and I need to change the caption. I can't find where I

change
the properties of the command button. Can someone point me in the right
direction?
Thanks,

--
Gary Beard




  #3  
Old April 21st, 2005, 12:42 AM
gbeard
external usenet poster
 
Posts: n/a
Default

Thanks Harald,
Isn't there a way to change the properties like size, background color,
foreground color, caption etc...in a properties box?

Thanks again,
Gary Beard


  #4  
Old April 21st, 2005, 01:43 PM
Harald Staff
external usenet poster
 
Posts: n/a
Default

Hi Gary

Yes, Rightclick it, choose Properties.
There is also a Properties button on the controls toolbox, a little hand
holding a white card.

HTH. best wishes Harald

"gbeard" skrev i melding
...
Thanks Harald,
Isn't there a way to change the properties like size, background color,
foreground color, caption etc...in a properties box?

Thanks again,
Gary Beard




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Print Button macro that is based on Checkbox macros Mstr G General Discussion 1 November 16th, 2004 11:55 PM
use macro to change picture dgreer Powerpoint 5 June 24th, 2004 07:56 PM


All times are GMT +1. The time now is 11:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.