Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing a workbook | Excel Discussion (Misc queries) | |||
Closing a workbook upon opening another | New Users to Excel | |||
Help with closing down a workbook?? | Excel Worksheet Functions | |||
Closing Workbook without Saving | Excel Programming | |||
closing workbook | Excel Programming |