Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking range of cells for entry then checking for total
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking range of cells for entry then checking for total
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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Checking & Forcing Data Entry in Cells | Excel Discussion (Misc queries) | |||
Checking for all blank cells in a range orcolumn. | Excel Programming | |||
Checking for empty cells in a range | Excel Programming | |||
Checking for empty cells in a range | Excel Programming | |||
Checking for empty cells in a range | Excel Worksheet Functions |