Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select Case
Is there a way the following code can be written where the places where 8 and
10 would depend on a cell value? If the cell value = 424 then dim myCase as string myCase = range("A1").value for i = 28 to myCase Select Case i case 28, 127, 226, 325, myCase or if the cell value = 10 then case 28, 127, 226, 325, 424, myCase the increment of the case is 99 End Select Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Case without Select Case error problem | Excel Discussion (Misc queries) | |||
Select Case | Excel Programming | |||
End Select without Select Case, Block If without End If errors | Excel Programming | |||
Need help on Select Case | Excel Worksheet Functions |