You will need to use a macro
The problem is that it will not work if macro security setting is high
The code works on a sheet called Sheet1 & looks at A1 & A2
'These instructions pre typed & are worded to cater for the novice programmer
'To install macro to correct location
'Copy this macro
'GoTo Excel
'Open VB Editor by pressing Alt + F11
'Just below the menus & toolbars on the left you should see Project - VbaProject window
'In this window you will see ThisWorkbook
'double click on ThisWorkbook - opens ThisWorkbook module sheet
'Paste macro code into big window on right
Private Sub Workbook_BeforeClose(Cancel As Boolean)
With Sheets("sheet1")
If .Range("a1").Value = "" Or .Range("a2").Value = "" Then
Cancel = True
MsgBox "Please Fill In Name & Date", vbInformation
End If
End With
End Sub
Bookmarks