View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default UserForm CommandButton Caption

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

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"PCLIVE" wrote in message
...
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