Opposite of Application.SaveWorkspace

R

Rich

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?
 
D

Dave Peterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top