disable pop up when overwrithing saved files

S

Smitty

Put this in a standard module. You can call it from a
Command Buttom or Forms button.

Sub CloseMe()

With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With

ActiveWorkbook.Close True

End Sub

Put this in the ThisWorkbook module.

Private Sub Workbook_BeforeClose()

With Application
.ScreenUpdating = True
.DisplayAlerts = True
End With

End Sub

Hope that helps,

Smitty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top