Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Closing a workbook

Hello All

I have built a application in Excel which uses multiple workbooks when
I press a button I jump from one workbook to another.

To exit a workbook I used the following Activeworkbook.close but
everytime I do this I get a message to save or discard the changes
from Excel. All these workbooks are reports and no changes are made
whatsoever.

Can you kindly provide a workaround how I can close the workbook
programatically without encountering this save or discard message.

Many thanks
Belinda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Closing a workbook

Belinda,

Try something like

ActiveWorkbook.Close savechanges:=False


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


"Belinda" wrote in message
om...
Hello All

I have built a application in Excel which uses multiple

workbooks when
I press a button I jump from one workbook to another.

To exit a workbook I used the following Activeworkbook.close

but
everytime I do this I get a message to save or discard the

changes
from Excel. All these workbooks are reports and no changes are

made
whatsoever.

Can you kindly provide a workaround how I can close the

workbook
programatically without encountering this save or discard

message.

Many thanks
Belinda



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Closing a workbook

Belinda,

Just add one little word!

Activeworkbook.Close False

HTH,
Nikos

"Belinda" wrote in message
om...
Hello All

I have built a application in Excel which uses multiple workbooks when
I press a button I jump from one workbook to another.

To exit a workbook I used the following Activeworkbook.close but
everytime I do this I get a message to save or discard the changes
from Excel. All these workbooks are reports and no changes are made
whatsoever.

Can you kindly provide a workaround how I can close the workbook
programatically without encountering this save or discard message.

Many thanks
Belinda



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
Closing a workbook N1KO Excel Discussion (Misc queries) 0 February 12th 09 03:51 PM
Closing a workbook upon opening another Dave New Users to Excel 3 January 3rd 07 09:57 PM
Help with closing down a workbook?? Don Excel Worksheet Functions 1 May 9th 05 04:05 AM
Closing Workbook without Saving Chris Gorham[_3_] Excel Programming 2 December 11th 03 12:17 AM
closing workbook Sam Dickins Excel Programming 1 November 27th 03 03:43 PM


All times are GMT +1. The time now is 01:56 AM.

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"