Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save without changes

For example using this code:

Application.DisplayAlerts = False
ActiveWorkbook.SaveAs " "filepath\filename""
Application.DisplayAlerts = True

Will force the workbook to be saved without prompting from the user.

What i want to do is close the ActiveWorkbook WITHOUT the changes an
also without the Display prompts.

The active workbook is called "EPLC.xls" and as there will be tw
workbooks (or more) open i would rather, if possible refer to th
"EPLC.xls" directly by name just to make sure nothing goes askew.

TI

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Save without changes

Hi Jako

ActiveWorkbook.Close False


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jako " wrote in message ...
For example using this code:

Application.DisplayAlerts = False
ActiveWorkbook.SaveAs " "filepath\filename""
Application.DisplayAlerts = True

Will force the workbook to be saved without prompting from the user.

What i want to do is close the ActiveWorkbook WITHOUT the changes and
also without the Display prompts.

The active workbook is called "EPLC.xls" and as there will be two
workbooks (or more) open i would rather, if possible refer to the
"EPLC.xls" directly by name just to make sure nothing goes askew.

TIA


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Save without changes

Try something like

ActiveWorkbook.Close savechanges:=False
' or
Workbooks("EPLC.xls").Close savechanges:=False


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jako " wrote in message
...
For example using this code:

Application.DisplayAlerts = False
ActiveWorkbook.SaveAs " "filepath\filename""
Application.DisplayAlerts = True

Will force the workbook to be saved without prompting from the

user.

What i want to do is close the ActiveWorkbook WITHOUT the

changes and
also without the Display prompts.

The active workbook is called "EPLC.xls" and as there will be

two
workbooks (or more) open i would rather, if possible refer to

the
"EPLC.xls" directly by name just to make sure nothing goes

askew.

TIA


---
Message posted from http://www.ExcelForum.com/



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
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM
Save As - Multiple Sheets fails to save as text file Ravee Srinivasan Excel Programming 2 November 10th 03 04:05 PM


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