Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default How to supress a Save prompt?

Excel 2000
Windows 2k Pro

I was hoping I could put some code in the Workbook_Close event handler that
would suppress any save prompts. Can this be done, and if so, how?

TIA

-gk-


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default How to supress a Save prompt?

You could try adding the following lined of code to the Workbook_BeforeClose
event handler. Remember though, if you make any changes you'd like to keep,
you must save before closing, else your changes will all be lost.

ThisWorkbook.Saved=True

D.S.

"TBA" wrote in message
...
Excel 2000
Windows 2k Pro

I was hoping I could put some code in the Workbook_Close event handler

that
would suppress any save prompts. Can this be done, and if so, how?

TIA

-gk-




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default How to supress a Save prompt?

three ways at least to do this:
(1)
Workbooks(SomeWorkbook).Close False
' false sats don't save

(2)
Application.DisplayAlerts = False
Workbooks(SomeWorkbook).Close
Application.DisplayAlerts = True

(3)
Workbooks(SomeWorkbook).Saved = True
Workbooks(SomeWorkbook).Close


Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
Excel 2000
Windows 2k Pro

I was hoping I could put some code in the Workbook_Close

event handler that
would suppress any save prompts. Can this be done, and

if so, how?

TIA

-gk-


.

-----Original Message-----
Excel 2000
Windows 2k Pro

I was hoping I could put some code in the Workbook_Close

event handler that
would suppress any save prompts. Can this be done, and

if so, how?

TIA

-gk-


.

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
Do you wish to save prompt Kelley Excel Discussion (Misc queries) 1 November 20th 06 04:58 PM
Save Changes Prompt ExcelQuestion Excel Worksheet Functions 4 June 20th 06 11:25 PM
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Save Prompt LJuszkiewicz Excel Worksheet Functions 1 May 27th 05 06:21 AM
Save prompt MC Excel Discussion (Misc queries) 1 March 7th 05 06:18 PM


All times are GMT +1. The time now is 05:57 PM.

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"