M
mark1
Can anyone tell me why when I run the following code, I
get the "End If without block If" Error?
Set r = Range("Name")
For n = 1 To r.Rows.Count
If IsEmpty(r.Cells(n, 1)) Then n.Activate
ActiveCell.Value = a
GoTo Option3
End If
Next n
Option3:
Sheets("Sheet1").Activate
get the "End If without block If" Error?
Set r = Range("Name")
For n = 1 To r.Rows.Count
If IsEmpty(r.Cells(n, 1)) Then n.Activate
ActiveCell.Value = a
GoTo Option3
End If
Next n
Option3:
Sheets("Sheet1").Activate