Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to assign multiple macros to a toolbar "button" and execute the right
macro based on a DropDown list's selection: ie- Press "button" examine value from dropdown list choose the correct macro execute ----------------------------------------- I have the (4) macros written and working (via recorder) and could assign them to separate "buttons" but I know there is a more professional way to do this... Thanks, KG- |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use Select/Case
Sub Macro() Select Case Range("B1") Case "a" Run "macro1" Case "b" Run "macro2" Case "c" Run "macro3" End Select End Sub If this post helps click Yes --------------- Jacob Skaria "KG Old Wolf" wrote: I want to assign multiple macros to a toolbar "button" and execute the right macro based on a DropDown list's selection: ie- Press "button" examine value from dropdown list choose the correct macro execute ----------------------------------------- I have the (4) macros written and working (via recorder) and could assign them to separate "buttons" but I know there is a more professional way to do this... Thanks, KG- |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
OUTSTANDING! and thank you very much.
As you can tell, I am just beginning to go beyond the macro recorder for purposes of automating certain functions within the spreadsheet..... Again, thank you KG- ------------------------------------------------------------------ "Jacob Skaria" wrote: Use Select/Case Sub Macro() Select Case Range("B1") Case "a" Run "macro1" Case "b" Run "macro2" Case "c" Run "macro3" End Select End Sub If this post helps click Yes --------------- Jacob Skaria "KG Old Wolf" wrote: I want to assign multiple macros to a toolbar "button" and execute the right macro based on a DropDown list's selection: ie- Press "button" examine value from dropdown list choose the correct macro execute ----------------------------------------- I have the (4) macros written and working (via recorder) and could assign them to separate "buttons" but I know there is a more professional way to do this... Thanks, KG- |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Great..and thanks for the feedback..
If this post helps click Yes --------------- Jacob Skaria "KG Old Wolf" wrote: OUTSTANDING! and thank you very much. As you can tell, I am just beginning to go beyond the macro recorder for purposes of automating certain functions within the spreadsheet..... Again, thank you KG- ------------------------------------------------------------------ "Jacob Skaria" wrote: Use Select/Case Sub Macro() Select Case Range("B1") Case "a" Run "macro1" Case "b" Run "macro2" Case "c" Run "macro3" End Select End Sub If this post helps click Yes --------------- Jacob Skaria "KG Old Wolf" wrote: I want to assign multiple macros to a toolbar "button" and execute the right macro based on a DropDown list's selection: ie- Press "button" examine value from dropdown list choose the correct macro execute ----------------------------------------- I have the (4) macros written and working (via recorder) and could assign them to separate "buttons" but I know there is a more professional way to do this... Thanks, KG- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable Execution speed of VBA Code | Excel Programming | |||
stopping a macro based on a conditional | Excel Programming | |||
Conditional execution | Excel Programming | |||
Is it possible to choose a macro based upon a valve of a variable?? | Excel Programming | |||
Conditional macro execution | Excel Programming |