Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Form Button - Changing Text

I have placed a button on the sheet using the button on the forms toolbar.
When adding to the click property it is named button1. It does not function
the same way as a commandbutton, and I cannot find how to change the caption
with text. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Form Button - Changing Text

Right-click the button and choose Edit Text from the pop-up menu and type in
the caption of the button. If you're trying to do this with code, use
something like

Dim WS As Worksheet
Set WS = Worksheets("Sheet1")
WS.Buttons("Button 1").Caption = "Some New Text"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Dan" wrote in message
...
I have placed a button on the sheet using the button on the forms toolbar.
When adding to the click property it is named button1. It does not
function
the same way as a commandbutton, and I cannot find how to change the
caption
with text. Can anyone help?



  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default Form Button - Changing Text

It was with code. My message wasn't very clear. Thanks for the help.

"Chip Pearson" wrote:

Right-click the button and choose Edit Text from the pop-up menu and type in
the caption of the button. If you're trying to do this with code, use
something like

Dim WS As Worksheet
Set WS = Worksheets("Sheet1")
WS.Buttons("Button 1").Caption = "Some New Text"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Dan" wrote in message
...
I have placed a button on the sheet using the button on the forms toolbar.
When adding to the click property it is named button1. It does not
function
the same way as a commandbutton, and I cannot find how to change the
caption
with text. Can anyone help?




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
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
How to Transfer data from Text Form Fields in MS Word into Excel? CWillis Excel Discussion (Misc queries) 1 July 18th 06 06:35 AM
excel -can I use a text box as unprotected box in protected form. Big Geoff Excel Discussion (Misc queries) 1 June 11th 06 05:58 PM
Variable Text on a Button PaulW Excel Discussion (Misc queries) 1 May 10th 06 12:39 PM
Changing a comma separated text file and save it. BristolBreeze Excel Discussion (Misc queries) 0 March 23rd 06 10:32 AM


All times are GMT +1. The time now is 02:58 AM.

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

About Us

"It's about Microsoft Excel"