Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Syntax to close Excel workbook not saving changes

In Excel 2000, I want to automate closing a file without saving changes.
This code does not give any error messages, but closes and does in fact save
the changes:

Sub DoNotSaveChanges()
'
' DoNotSaveChanges Macro
' Macro recorded 5/07/2008 by Grahame McEnery
'

'
ActiveWorkbook.Close (SaveChanges = False)
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default VB Syntax to close Excel workbook not saving changes

activeworkbook.Close SaveChanges:=False

Cliff Edwards
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
close workbook without saving or promt to save ATVNSHANE Excel Discussion (Misc queries) 3 February 4th 10 03:57 PM
Close workbook without saving file [email protected] Excel Programming 7 March 6th 08 03:20 PM
Saving VBA project on workbook close Eric Fingerhut[_3_] Excel Programming 4 July 18th 06 02:38 AM
close excel without saving Mike Excel Programming 11 June 24th 05 04:08 PM
Close a workbook without saving macros Papa Jonah Excel Programming 12 October 27th 04 12:43 AM


All times are GMT +1. The time now is 01:16 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"