How do I notify the user that a backup (save) has completed succesfully

Matt Young

New Member
Joined
Nov 2, 2018
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi guys.

I have bit of code that clears a sheet, before it does that I have it save to another location (just incase the user pressed the wrong button), my question is, is there a way to notify the user hat the save is succesful before thy carry on? Here is hat I have already.

If MsgBox("WARNING,YOU ARE ABOUT TO DELETE ALL OF THE BACKUP ENTRIES." & vbNewLine & "" & vbNewLine & "Click YES to continue or NO to abort", vbYesNo + vbExclamation) = vbYes Then
MsgBox "This Spreadsheet will now be saved", vbOKOnly + vbInformation
ActiveWorkbook.SaveCopyAs Filename:="C:\backup\backup spreadsheet\AutoSave\Device Backup Spreadsheet backup" & Format(Now(), "mm-dd-yy, hh.mm.ss") & ".xlsm"

This is where I want to notify te user that the save has completed

Range("C4:C15").Select
Selection.ClearContents
Range("E4:E15").Select
Selection.ClearContents
Range("F4:F15").Select
Selection.ClearContents
Range("C17:C22").Select
Selection.ClearContents
Range("E17:E22").Select
Selection.ClearContents
Range("F17:F22").Select
Selection.ClearContents
ActiveWindow.SmallScroll Down:=12
Range("C25:C27").Select
Selection.ClearContents
Range("E25:E28").Select
Selection.ClearContents
Range("F25:F28").Select
Selection.ClearContents
Range("F29:F35").Select
Selection.ClearContents
Range("E29:E35").Select
Selection.ClearContents
Range("C29:C35").Select
Selection.ClearContents
ActiveWindow.SmallScroll Down:=-24
Range("C4").Select
Else
End If
ActiveSheet.Range("C4").Select
Application.ScreenUpdating = True
ActiveSheet.Protect
End Sub

Any help here would be great
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What's wrong with what you've got?
 
Upvote 0

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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