View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove Harlan Grove is offline
external usenet poster
 
Posts: 733
Default IS THERE A WAY TO HAVE CELLS IN AN EXCEL SPREADSHEET REQUIRE DATA?

Marcelo wrote...
DATA VALIDATION


Try it. Start off with the particular cell blank, and see if Excel does
anything to compell you to enter anything in it. Then enter something
in it and clear the entry. The only thing Excel would prevent with the
custom validation formula =NOT(ISBLANK(X99)) for cell X99 is editing
the cell contents by pressing [F2], clearing the cell contents in the
formula bar or in the cell if entering directly in cells, then entering
the blank result. Most people would just press [Delete], and Excel's
data validation does nothing to prevent that.

"LAKEISHA M." escreveu:
IS THERE A WAY TO HAVE CELLS IN AN EXCEL SPREADSHEET REQUIRE DATA?


You'd need to use event handlers, which means you'd need to insist that
macros were enabled. Specifically, you'd use BeforeSave and BeforePrint
event handlers in the ThisWorkbook class module, and set their Cancel
parameters to TRUE if the cells requiring entry were blank. That way
users couldn't save or print without making mandatory entries.