Suppress the "Saving" message when saving an excel file

jdhfch

Board Regular
Joined
Jan 25, 2018
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I have a workbook on a shared drive that saves automatically. I am trying to suppress the "Saving" pop up box when it does save. Can anyone help, please?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Good morning,

I have a workbook on a shared drive that saves automatically. I am trying to suppress the "Saving" pop up box when it does save. Can anyone help, please?
I haven't tested this, but according to Microsoft, you can save without prompts using the following vba code:
VBA Code:
Sub Auto_Close()
    ThisWorkbook.Saved = True
End Sub
There's more discussions about this on this thread; same question: VBA code to save workbook with no prompt
 
Upvote 0
Hi jdhfch,

if you want to save a file without the message appearing, you should use Application.SisplayAlerts as shown below

VBA Code:
    [...] ' Your code here

    Application.DisplayAlerts = False
   
    ThisWorkbook.SaveAs sFilename  ' Save your Workbook and if you want you can add other parameters
   
    Application.DisplayAlerts = True

    [...] ' Other your code here

Bye
 
Upvote 0

Forum statistics

Threads
1,225,515
Messages
6,185,413
Members
453,289
Latest member
ALPOINT_AIG

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