prevent blank cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I prevent users of my workbook from making a cell blank? I want them
to be able to edit it so have left it unprotected but I donot want them to
be able to leave it blank. It looks as if the Data Validation command should
do it, but I can't get it to work.
 
Your repeat post appears as a reply to the thread in my browser. As a
result, I almost didn't read your post on the assumption that your
question had already been answered. I suspect many others did ignore
your post for the same reason.

Assuming that you know how to set up the validation condition (uncheck
"Ignore blank", set up a "Custom" validation, such as =ISNUMBER(A1)
where A1 is the cell to validate, etc.) then I presume that you are
hitting a known weakness of Data Validation, where deleting data from
the cell (without replacing with anything new) leaves the cell empty, so
the Data Validation event does not fire (presumably the faulty logic was
that there is no data to validate ...). You can roll your own patch in
VBA along the lines of
http://groups-beta.google.com/group/microsoft.public.excel.misc/msg/e2945c7bccd60819

Jerry
 
I like to use an adjacent column and put a formula like:

=if(trim(a1)<>"","","<-- Don't leave blank")

I bold it in big red letters.
 
Jerry W. Lewis said:
Your repeat post appears as a reply to the thread in my browser. As a
result, I almost didn't read your post on the assumption that your
question had already been answered. I suspect many others did ignore
your post for the same reason.

Assuming that you know how to set up the validation condition (uncheck
"Ignore blank", set up a "Custom" validation, such as =ISNUMBER(A1)
where A1 is the cell to validate, etc.) then I presume that you are
hitting a known weakness of Data Validation, where deleting data from
the cell (without replacing with anything new) leaves the cell empty, so
the Data Validation event does not fire (presumably the faulty logic was
that there is no data to validate ...). You can roll your own patch in
VBA along the lines of
http://groups-beta.google.com/group/microsoft.public.excel.misc/msg/e2945c7bccd60819

Jerry



Thanks - a good solution - I knew there had to be a way! Ken
 
Dave Peterson said:
I like to use an adjacent column and put a formula like:

=if(trim(a1)<>"","","<-- Don't leave blank")

I bold it in big red letters.
Ken
 

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

Similar Threads

Excel Protection 2
Preventing blank cells 3
Data Validation 1
Problem in inserting rows 1
Excel Concatenate with line breaks but ignore blank cells 3
Ignore Blanks 2
prevent copying of cells 1
"Blank" cells showing unwanted data 4

Back
Top