Results 1 to 3 of 3

Thread: Message Box Before Saving Document

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    8
    Rep Power
    0

    Message Box Before Saving Document

    Hello,
    Does anybody know how to make a Message Box appear every time the user saves an excel document. The box will say "Please don't forget to sign the document before submitting it". Users tend to forget it so I want to add the message box to remind them every time they save the doc. I know it could be annoying but that's fine.

    Thank you!!!

    ~Lucero

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,122
    Rep Power
    10
    Hi,

    this goes in workbook module.

    Code:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        MsgBox "Please don't forget to sign the document before submitting it"
    End Sub
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14
    Code:
    strMsg = "You must select the node - before you can delete it."
    intMsgType = vbExclamation + vbOkCancel
    intResponse = MsgBox(strMsg, intMsgType, "Operator action")

    Wirh this example you can also exit your routine - depending on selection - Just an example
    xl2007 - Windows 7
    xl hates the 255 number

Similar Threads

  1. Replies: 8
    Last Post: 05-21-2013, 06:34 AM
  2. Message Box Pop-Up "yes or no"
    By Ryan_Bernal in forum Excel Help
    Replies: 1
    Last Post: 02-19-2013, 06:20 PM
  3. Display sheet names in a message box
    By pells in forum Excel Help
    Replies: 4
    Last Post: 02-13-2013, 07:33 PM
  4. Reading/Saving binary data
    By Rasm in forum Excel Help
    Replies: 3
    Last Post: 02-26-2012, 08:15 PM
  5. Saving Embedded Picture From Excel Workbook Sheet To Folder Hard Drive
    By littleiitin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 10-31-2011, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •