Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a button on my worksheet from the Forms toolbar. I know I can use
ActiveSheet.Buttons(1).Caption="My Text" to set the button's caption. But how do I set the button's macro to sub SpeakMsg? Excel XP. Thanks, James |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Zone
Sub Macro1() ActiveSheet.Shapes("Button 1").OnAction = "testB" End Sub -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Vista Small Business, Office XP |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Many thanks and regards to Munich
"Helmut Weber" wrote in message ... Hi Zone Sub Macro1() ActiveSheet.Shapes("Button 1").OnAction = "testB" End Sub -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Vista Small Business, Office XP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign a macro to a button | Excel Discussion (Misc queries) | |||
How to assign a macro to a button | Excel Programming | |||
How do I Assign Macro to a button? | Charts and Charting in Excel | |||
Assign macro to button | Excel Programming | |||
how to add code programmatically to a macro for a button | Excel Programming |