Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to limit the amount of decision logic I put in my looping
routine. I am doing up to 11,000 iterations. This is why I want all the decision logic to be stated up front BEFORE the loop. I can use the IF statments within the loop as you recommended, but they are likely going to have to be Case Statements due to the complexity of my procedure. Lets simplify my original question. Lets say I want to choose between three sub routines. If I simply want to pass the name of these subrouitnes (all in same module with loop logic) to a variable, how do I go about doing it? How do I dimension the variable? Say variable is called PriceOption. Does it use quotes when being called? I tried using Application.Run but could not get it to work. Dim PriceOPtion As String Dim X as Integer Select Case Case = 1 PriceOption = "Sub1" Case = 2 PriceOption = "Sub2" Case = 3 PriceOption = "Sub3" For X =1 to 11,00 Call PriceOption ( or is it Application.Run "PriceOption") Next X |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Tom Ogilvy | Excel Worksheet Functions | |||
Thank You Tom Ogilvy | Excel Worksheet Functions | |||
Message to Tom Ogilvy regarding SelectionChange | Excel Programming | |||
Tom Ogilvy:Object Error Still | Excel Programming | |||
to Tom Ogilvy: re Macros in excel | Excel Programming |