Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Close confirmation

Status
Not open for further replies.

cogdev

MIS
Nov 30, 2001
85
0
0
US
I am trying to implement a documentation standard in the Office. I want to change the default Excel Template to have a 'Notes' Tab. The Notes table will have some standard information to fill in: Name, Date, Project etc.
Is there a way to force a user to fill in this data before closing the spreadsheet?

Thanks
 
You could put a macro in your Workbook's BeforeClose event. Below is a simplified example.

However, this will not work if the user disables Macros.

Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    If Sheets("Sheet1").Range("A1").Value = "" Then
        MsgBox "Please Fill in Notes!"
        Cancel = True
    End If
End Sub

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top