LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Edit text in a Command button

I was kind of expecting a different response. Is your problem solved?

--
Rick (MVP - Excel)


"tkincaid" wrote in message
...
Thanks for all your help

"Rick Rothstein" wrote:

You said in your original message that your CommandButtons came from the
Control Toolbar Toolbox... if that is truly the case, then the default
names
for the buttons would not have a space in them (that is, your button
would
**not** be named "Button 3") and you would not be using the Shapes
collection to control them (as the code you posted indicates). The
CommandButtons from the Control Toolbar and the Buttons from the Forms
toolbar (where your button name indicates it comes from) are two
completely
different entities and the method of controlling them through code is
completely different as well. So... which toolbar did you get the buttons
from (and, as an aside, did all the buttons come from the same toolbar)?

--
Rick (MVP - Excel)


"tkincaid" wrote in message
...
Hello Rick,

I tried your code and it didn't work for me. Here is my code that I
need
to
insert into a loop to make this happen on all of the 500+ worksheets:

'Instruction to change every button (identified as Button 3) in the
workbook

ActiveSheet.Shapes("Button 3").Select
Selection.Characters.Text = "Another Facility"
With Selection.Characters(Start:=1, Length:=16).Font
.Name = "Arial"
.FontStyle = "Bold"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = x1UnderlineStyleNone
.ColorIndex = 5
End With

I hope this helps, thanks.

"tkincaid" wrote:

I used commandbutton from the control toolbar toolbox, I want to edit
the
text on the button, the problem is I have over 500 sheets to do this
to,
can
I run a macro to complete this task.




 
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
Ho to edit text in a custom button donwb Excel Discussion (Misc queries) 3 September 20th 09 08:37 PM
Need to Add Text to Control Text Box via Command Button code BJ Excel Programming 1 September 19th 08 06:16 PM
edit command button jeana Excel Programming 3 March 21st 06 10:58 PM
using command button instead of edit function john tempest[_2_] Excel Programming 7 December 21st 05 06:41 PM
Edit Text in Button ianripping[_32_] Excel Programming 6 February 7th 04 11:37 AM


All times are GMT +1. The time now is 06:18 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"