Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default disable pop up when overwrithing saved files

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


-----Original Message-----
How do I incooperate code that will automatically save an
existing file and not prompt me with the pop up window
of 'A file named Invoice Report already exists in this
locatin. Do you want to replace it?.
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Files saved as csv files are actually saved as text files? Queen_Of_Thebes[_2_] Excel Discussion (Misc queries) 2 May 19th 09 03:04 PM
How do I disable backup files from Excel Queries? simmon Excel Discussion (Misc queries) 1 September 15th 06 03:29 AM
Changes are not saved on files Ray Excel Discussion (Misc queries) 1 October 19th 05 02:33 PM
disable pop up when overwrithing saved files Trevor Shuttleworth Excel Programming 0 July 22nd 03 07:04 PM
disable pop up when overwrithing saved files Ron de Bruin Excel Programming 0 July 22nd 03 06:45 PM


All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"