View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Wally Steadman[_4_] Wally Steadman[_4_] is offline
external usenet poster
 
Posts: 16
Default If Then Statements

I have this simple code:

sub printsheet()

If Worksheets(1).Cells(1, 1) < " " Then Worksheets(1).printout

End If

end sub

I keep getting a COMPILE ERROR: End If without Block if.

My If Then syntax appears to be coorect based on the help file, what am I
doing wrong?