Creating a Macro - Pop up Message appears when workbook is saved

kron0120

New Member
Joined
May 29, 2015
Messages
2
Hey everyone,

I'm looking to create a Macro in Excel 2010 that will create a pop up message for whenever the workbook is saved.

I've been playing around and have been able to create what I want with a Macro button that enables it. But looking for something that will activate when the workbook is saved and a pop up message box will appear with a reminder message for the Excel user to double check their work.

Is that something that is possible? Did some digging, but couldn't find exactly what I needed to get it to work. First time working with Macros so any help would be greatly appreciated!

Thanks - kron0120
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Upvote 0
Welcome to MrExcel forums.

This can be done with the Workbook_BeforeSave event handler in the ThisWorkbook module:
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    MsgBox "Saved: " & ThisWorkbook.FullName
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top