lr = cells(rows.count,9).end(xlup).row
for a = 1 to lr
if isempty(cells(a,9)) then
'do something if it's empty
end if
next a
Sorry, but why would you use a goto for this? If you wanted to not do something if the cell is empty thenThis should do what you want.
Code:For a = 1 to LR If Worksheets("Sheet1").Range("A"&a)="" Then Goto Skip 'Do Stuff Skip: next a
For a = 1 to LR
If Worksheets("Sheet1").Range("A"&a)<>"" Then
'Do Stuff
next a
<>