PC Review


Reply
Thread Tools Rate Thread

Checking range of cells for entry then checking for total

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      13th Oct 2006
I have a range of cells named "Reuse_Estimate" (B22:B24 in my worksheet) that
need to have something entered in all cells. Once a value is entered in all
cells, I need to check that the range named "Reuse_Total" is a specific
value. I have the code for the latter, but am not sure how to check that the
Reuse_Estimate ranges are not blank. Any suggestions?

Thanks
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      13th Oct 2006
Hi Barb

You can use the counta function

Sub test()
If Application.WorksheetFunction.CountA(Range("Reuse_Estimate")) = 3 Then
'Do nothing
Else
MsgBox "Please fill in all cells"
End If
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:07EF586E-D6A7-4758-BCAD-(E-Mail Removed)...
>I have a range of cells named "Reuse_Estimate" (B22:B24 in my worksheet) that
> need to have something entered in all cells. Once a value is entered in all
> cells, I need to check that the range named "Reuse_Total" is a specific
> value. I have the code for the latter, but am not sure how to check that the
> Reuse_Estimate ranges are not blank. Any suggestions?
>
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking & Forcing Data Entry in Cells robertguy Microsoft Excel Misc 1 23rd Jan 2006 06:01 PM
Checking for all blank cells in a range orcolumn. =?Utf-8?B?TWlrZXk=?= Microsoft Excel Programming 1 30th Jun 2005 03:59 PM
Checking for empty cells in a range Chris Strug Microsoft Excel Programming 8 21st Jun 2005 12:07 AM
Checking for empty cells in a range Chris Strug Microsoft Excel Programming 3 20th Jun 2005 03:11 PM
Checking for empty cells in a range Chris Strug Microsoft Excel Worksheet Functions 2 20th Jun 2005 10:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.