Thread: for x 2 to 100
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Otto Moehrbach[_2_] Otto Moehrbach[_2_] is offline
external usenet poster
 
Posts: 1,071
Default for x 2 to 100

Something like this perhaps: HTH Otto
Sub Test()
Dim x As Long
For x = 2 To 100
If Not IsEmpty(Range("H" & x)) Then
'perform what I want
End If
Next x
End Sub

"EXCELMACROS" wrote in message
...
hi, I basically want to add an if statment to move to the next X if a cell
is
empty else conitun, please help.

For x 2 to 100
If isempty(range("H" & X)) then
***go to next x
else
perform what I want
end if
next x
--
Thank you...