Change caption on a macro button

G

gbeard

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,
 
H

Harald Staff

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
 
G

gbeard

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
 
H

Harald Staff

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
 

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