Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JJM JJM is offline
external usenet poster
 
Posts: 2
Default Identify blanks

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.
--
Regards,
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Identify blanks

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.
--
Gary''s Student - gsnu200764


"JJM" wrote:

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.
--
Regards,

  #3   Report Post  
Posted to microsoft.public.excel.programming
JJM JJM is offline
external usenet poster
 
Posts: 2
Default Identify blanks

Great! Thanks!
--
Regards,


"Gary''s Student" wrote:

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.
--
Gary''s Student - gsnu200764


"JJM" wrote:

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.
--
Regards,

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify Blanks; All Listed in Column AX ryguy7272 Excel Programming 6 August 15th 07 09:14 PM
Sumproduct copying blanks or how to insert zero into blanks asg2307 Excel Worksheet Functions 4 April 4th 07 07:26 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Programming 5 September 3rd 06 11:23 PM
copy range of cells with blanks then paste without blanks justaguyfromky Excel Worksheet Functions 1 September 3rd 06 07:56 PM
Paste Special Skip Blanks not skipping blanks, but overwriting... gsrosin Excel Discussion (Misc queries) 0 February 22nd 05 03:33 AM


All times are GMT +1. The time now is 06:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"