Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
In the Thisworkbook's codemodule, put this type of code:
Private Sub Workbook_BeforeClose(Cancel As Boolean) If Worksheets("Sheet1").Range("A1").Value = "" Then Cancel = True If Worksheets("Sheet2").Range("B2").Value = "" Then Cancel = True ' and so on for each cell that you require to be filled in End Sub -- HTH, Bernie MS Excel MVP "Sierra Coating" <Sierra wrote in message ... I would like to know if there is a way that I can set up a file that will not allow someone to close it until certain cells are filled in. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Putting Excel formatting and/or formulas into CSV file | Excel Discussion (Misc queries) | |||
'document not saved' for 'save' or 'save as' an EXCEL file | Excel Discussion (Misc queries) | |||
Excel prompts me to save a copy or overwrite file. | Excel Worksheet Functions | |||
How do I save a copy of an excel file without the formulas? | Excel Worksheet Functions | |||
INFO: ON EXCEL SPREADSHEET FILE | New Users to Excel |