Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a command button in Sheet3. The code in the backend for this
command button is Call command1 When the user clicks the button, Sheet3 will copied and renamed as Sheet4. So, all the objects of sheet3 including the commnand button will be copied to sheet4. But, I would like to change the code for this button in sheet4 as Call command2 instead of being Call command1 Similarly, when the user clicks the button again in sheet3, it will be copied as sheet5 and the command button should have code Call command3 instead of being Call command1 Is there any macro that can modify the subroutine slightly? Please let me know. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating macro for slightly complicated formula | Excel Discussion (Misc queries) | |||
Call a subroutine using variable subroutine name | Excel Discussion (Misc queries) | |||
Calling a VBA add in from a macro subroutine | Excel Programming | |||
How To Quit Subroutine from a called subroutine | Excel Programming | |||
How do I exit a macro subroutine? | Excel Worksheet Functions |