Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Hopefully an easy question to answer. I have written a macro that adds a button and renames it. Below is the code: ActiveSheet.Buttons.Add(2, 2, 100, 50).Select ActiveSheet.Shapes("Button 1").Select Selection.Characters.Text = "Print pages" This works fine when the new button added is actually called "Button 1". What I want to do is replace with "Button 1" with a more generic name so if the button added is actually called "Button 2" etc.. the macro will still work. Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro for renaming worksheets | New Users to Excel | |||
Renaming a Macro | Excel Programming | |||
Pause macro, add form button to sheet, continue macro when button clicked! | Excel Programming | |||
renaming worksheet from within macro | Excel Programming | |||
Renaming FORM button | Excel Programming |