-----Original Message-----
Hi Jac
You can use this event in the Thisworkbook module to
check if all cells in the C column in Sheet1 have a value
If not you can't save the file
See also this event
Private Sub Workbook_BeforeClose(Cancel As Boolean)
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
RC = Sheets("Sheet1").UsedRange.Rows.Count
If Application.WorksheetFunction.CountA _
(Sheets("Sheet1").UsedRange.Columns(3)) <> RC Then
MsgBox "fill in all cells in column C"
Cancel = True
End If
End Sub
Right click on the Excel icon next to File in the menubar
And choose View code
You are now in the Thisworkbook module
Paste the Event in this place
Alt-Q to go back to Excel
Save your file(if you can,g>)
--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
"Jac Schroeten" <
[email protected]>