View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Corey Corey is offline
external usenet poster
 
Posts: 363
Default UserForm CommandButton Caption

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


"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