LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 465
Default Close all without saving and exit without prompts

In article , Claus Busch
writes
Hi Colin,

Sub Test()
Dim wbk As Workbook

For Each wbk In Workbooks
If wbk.Name < ThisWorkbook.Name Then
wbk.Close savechanges:=False
End If
Next
ThisWorkbook.Saved = True
Application.Quit
End Sub


Regards
Claus B.



HI Guys

OK thanks for this. All working fine now.

Everything closes with no saving and no prompts at all. Perfect.


^_^



Best Wishes


Colin
 
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
close/open workbook without prompts [email protected] Excel Programming 5 June 29th 08 07:16 PM
Prompts to Discard digital signature while saving Jaydeep Excel Programming 0 April 12th 07 01:00 PM
Saving Prompts Colin Hayes Excel Worksheet Functions 2 March 14th 07 03:02 PM
When saving CSV excel always prompts about the file format SimonW-UK Excel Discussion (Misc queries) 2 November 16th 05 10:34 AM
Saving a single Worksheet w/o redundant prompts Jeff Harbin[_4_] Excel Programming 3 November 13th 05 09:22 PM


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

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

About Us

"It's about Microsoft Excel"