Identify blanks

  • Thread starter Thread starter JJM
  • Start date Start date
J

JJM

I have multiple cells (C5,D7,R45,S77,T79...) that should contain data input
by user.
I need to identify those cells where no data was entered to alert the user.
Can someone give me an idea of how to write this code?
Thanks.
 
Perhaps:

Sub dural()
ll = Array("C5", "D7", "R45", "S77", "T79")
For i = 0 To 4
If IsEmpty(Range(ll(i))) Then
MsgBox ("cell " & Range(ll(i)).Address & " needs to be filled")
End If
Next
End Sub

Alternatively you can construct a range of dis-joint cells and loop over it.
 
Great! Thanks!
--
Regards,


Gary''s Student said:
Perhaps:

Sub dural()
ll = Array("C5", "D7", "R45", "S77", "T79")
For i = 0 To 4
If IsEmpty(Range(ll(i))) Then
MsgBox ("cell " & Range(ll(i)).Address & " needs to be filled")
End If
Next
End Sub

Alternatively you can construct a range of dis-joint cells and loop over it.
 

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