Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using multiple conditions
The following generates an error "Next" without a "For". What do I put in so
that it formats the cell which corresponds to the following row & column parameters? For a = 4 To 31 If Cells(a, 1).Value = "John" Then For b = 2 To 32 If Cells(2, b).Value = "Fri" Then Cells(b, a).Select With Selection.Interior .ColorIndex = 0 .Pattern = xlGray8 .PatternColorIndex = xlAutomatic End With Next b End If Next a MsgBox "Formatting Complete" Exit Sub Error: Exit Sub End Sub Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Setting multiple conditions to return a figure from multiple cells | Excel Discussion (Misc queries) | |||
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec | Excel Discussion (Misc queries) | |||
How do I add multiple values that match multiple conditions? | Excel Discussion (Misc queries) | |||
Combining Text from multiple cells under multiple conditions | Excel Worksheet Functions | |||
How to multiple conditions to validate more than 2 conditions to . | Excel Worksheet Functions |