Home |
Search |
Today's Posts |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Todd Huttenstine wrote:
Dim rng As Range Dim cell1 As Object Set rng = Sheets("Converted Data").Range("O2:O100") For Each cell1 In rng If cell1 = "#N/A" Then Sheets("Mismatches").Range("A:" & Sheets ("Mismatches").Range("H2").Value) = cell1 Else End If Next I keep getting an error with the above code. It is not seeing the #N/A error correctly. There are formulas all in range O2:O100. How would I make this work? Thank you Todd Huttenstine Another option is to use the ISNA() worksheet function If Application.IsNa(cell1.Value) Then -- Regards, Juan Pablo González |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
do while loop problem | Excel Discussion (Misc queries) | |||
For...Each Loop Problem | Excel Programming | |||
Problem with Loop | Excel Programming | |||
For..Next loop problem | Excel Programming | |||
loop problem | Excel Programming |