Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
can someone tell me how to use a loop for these if statements
If [J7] [F7] Then [F7].Interior.ColorIndex = 17 End If If [J7] [F8] Then [F8].Interior.ColorIndex = 17 End If If [J7] [F9] Then [F9].Interior.ColorIndex = 17 End If If [J7] [F10] Then [F10].Interior.ColorIndex = 17 End If ....... so on till [F40] If [F7].Interior.ColorIndex = 17 Then [R22] = 1 End If If [F8].Interior.ColorIndex = 17 Then [R22] = 2 End If If [F9].Interior.ColorIndex = 17 Then [R22] = 3 End If ........ so on till [F40] thanks Shanu |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
For Each ... Next loop - need to reference the loop variable | Excel Programming | |||
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 | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |