ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Opposite of Application.SaveWorkspace (https://www.excelbanter.com/excel-programming/314991-opposite-application-saveworkspace.html)

Rich[_25_]

Opposite of Application.SaveWorkspace
 
When I close a woorkbook, it asks me if I want to save. I know I
don't, and it is very important that other ppl that I give the
workbook to don't either. In fact it's also better if they don't have
a choice to.

Is there a line of code say opposite to Application.SaveWorkspace,
that will disallow a save?

Dave Peterson[_3_]

Opposite of Application.SaveWorkspace
 
If you're closing a workbook, you can use:

dim wkbk as workbook
set wkbk = workbooks("book1.xls")

'do lots of stuff

wkbk.close savechanges=false

to avoid that question.



Rich wrote:

When I close a woorkbook, it asks me if I want to save. I know I
don't, and it is very important that other ppl that I give the
workbook to don't either. In fact it's also better if they don't have
a choice to.

Is there a line of code say opposite to Application.SaveWorkspace,
that will disallow a save?


--

Dave Peterson



All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com