View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob947[_2_] Rob947[_2_] is offline
external usenet poster
 
Posts: 1
Default Is it possible to choose a macro based upon a valve of a variable??

I have written 6 macros and want to choose to use 1 of them depending upon
the value of “n” in cell A1

If “n” = 1 through 20 use Macro 1
If “n” = 21 through 40 use Macro 2
If “n” = 41 through 60 use Macro 3
If “n” = 61 through 80 use Macro 4
If “n” = 81 through 100 use Macro 5
If “n” = 100 use Macro 6

Is this possible??