Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to create a loop to test if the value "56A" exist. It should loop
until C<25. If "56A" exists, then call a function. If c reaches 25 and "56A" does not exist, then call a different function. I had this code created. It seems like both the happy and sad functions are performed when "56A" is found. What's a better method to put this code? c = 10 Do While sValue < "56A" or c<25 If sValue = "56A" Then call happy Else c = c + 1 End If Loop call sad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Advancing outer Loop Based on criteria of inner loop | Excel Programming | |||
Loop Function unable to loop | Excel Programming | |||
Problem adding charts using Do-Loop Until loop | Excel Programming | |||
How do I create a For loop within a For loop? | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |