Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Use Macro To Change Which Macro Assigned To Command Button

I'm trying to create a macro that will change the macro associated with
multiple Command Buttons on my spreadsheet. I've been able to use the macro
recorder to change the macros associated with "regular" buttons on the sheet;
however, the recorder does not track the changing of the macro associated
with Command Buttons. A quick example of what I need to accomplish:

CommandButton23 is currently assigned to the macro "TOTYr_Day1" via:
Private Sub CommandButton23_Click()
TOTYr_Day1
End Sub

I need to change that to be assigned to the macro TOTYr_Day1_NEW:
Private Sub CommandButton23_Click()
TOTYr_Day1_NEW
End Sub

I'm stumped and would appreciate any help you can provide.

Thanks,

CVinje
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 identify macro assigned to toolbar button Patricia D Excel Discussion (Misc queries) 3 April 6th 09 04:31 AM
How to remove assigned button in from Macro in Excel 2007 Iraj Excel Discussion (Misc queries) 3 March 13th 09 05:52 PM
Macro assigned to a button Sadcrab Excel Discussion (Misc queries) 12 December 8th 06 11:16 PM
Macro Assigned to a Button zephyr Excel Discussion (Misc queries) 1 October 25th 06 03:33 PM
How do I know what macro is assigned to a button? Denise in NC Excel Discussion (Misc queries) 3 April 3rd 06 02:31 PM


All times are GMT +1. The time now is 03:05 PM.

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"