Enforce cell completion

S

Simon

I have a worksheet with which I want to make sure particular cells have
content filled in them before it is closed. Could anyone give me some
instruction on how to do this. Im new to this so any detail on where to go
and what to put in would be more than appreciated.
 
B

Bryan Hessey

Apart from using a big stick there is no foolproof way to do this, as
whilst you could write VB code to request cell completion you cannot
force a user to enable macros when opening a workbook.

Closest is a reminder, via select the required cell, and Format,
Conditional Formatting, and set Cell Value, is Equal to, ="" and set
the Pattern to Red.

This will highlight all required cells that have not yet been given a
value.

HTH

---
 
S

Simon

That works great thanks.

Moving on from that what would the formula be if cell A2 was to show red if
it had no contents but only if cell A1 had been filled in?

Thanks for the advice – lots made my day a lot more productive!
 
G

Gord Dibben

Simon

You seem satisfied with the answer you received, but how will that "enforce cell
completion" before closing?

I, as user, can simply ignore your red flags and carry on.


Gord Dibben MS Excel MVP
 
B

Bryan Hessey

The formula would then be:
set to Formuls (not Cell Value = )

=AND($A$1<>"",B1="")

As Gord Dibben pointed out this does not 'enforce' completion, merel
highlights the requirement.

HTH

---
That works great thanks.

Moving on from that what would the formula be if cell A2 was to sho
red if
it had no contents but only if cell A1 had been filled in?

Thanks for the advice – lots made my day a lot more productive!
 
Top