Need Help with If,Then

  • Thread starter Thread starter mrsjcd3
  • Start date Start date
M

mrsjcd3

What I am trying to do is: if there is a name(text) in the cell, then change
it to an X, otherwise if the cell is blank, leave it blank. The data is in
the following range, E2:G3959

Thanks,
mrsjcd3
 
Sub change_um()
For Each cell In Range("E2:G3959")
If cell.Value = "" Then
Else
cell.Value = "X"
End If
Next
End Sub
 
Thank you so much for the speedy help!!!

Gary''s Student said:
Sub change_um()
For Each cell In Range("E2:G3959")
If cell.Value = "" Then
Else
cell.Value = "X"
End If
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top