Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default UserForm CommandButton Caption

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default UserForm CommandButton Caption

Thanks Bob. That gets me started.


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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CommandButton Caption Anomily John Bundy Excel Programming 0 December 29th 06 10:37 AM
Commandbutton caption change peter.thompson[_6_] Excel Programming 6 December 22nd 05 06:29 AM
CommandButton caption title Paul Excel Programming 1 August 5th 04 11:38 PM
Change CommandButton Caption Claude Excel Programming 4 July 16th 04 04:18 PM
CommandButton.Caption Bob Phillips[_5_] Excel Programming 0 September 8th 03 08:15 AM


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

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

About Us

"It's about Microsoft Excel"