Worked for me just by specifying which sheet to use
If Sheets(1).Cells(z1, 9) = "" Then Sheets(1).Cells(z1, 10) = "HI"
--
-John
http://jmbundy.blogspot.com
Please rate when your question is answered to help us and others know what
is helpful.
"Rpettis31" wrote:
> I have code that I have tried in various ways yet I can not get the code to
> recognize a blank cell.
> For z1 = 7 To 1300
> If Cells(z1, 9) = "" Then Cells(z1, 10) = "HI"
> If IsNull(Cells(z1, 9)) = True Then Cells(z1, 10) = "HI"
> Next z1
>
> I only used the word hi to stick out on the sheet.