UserForm CommandButton Caption

P

PCLIVE

In UserForm3 I have a CommandButton named "M1". Is there a way that I can
use code to set the caption of that button?

example.

UserForm3.M1.Caption = "4"

This does not work. Can this be done?

Thanks,
Paul
 
B

Bob Phillips

Userform3.Controls("M1").Caption = "4"

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 
C

Corey

UserForm1.M1.Caption = Sheet1.Range("A1").Value' Or what ever value you want


In UserForm3 I have a CommandButton named "M1". Is there a way that I can
use code to set the caption of that button?

example.

UserForm3.M1.Caption = "4"

This does not work. Can this be done?

Thanks,
Paul
 

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