macro closing worksheet

G

Guest

I have a macro which opens and closes a worksheet.
Problem: when the worksheet is closed by the macro, it prompts me "Do you
want to save".

Is there anyway to get rid of this? There are a lot of opening and closing
worksheets, so this is kind of annoying.

Thanks for your help
 
B

Bob Phillips

Application.DisplayAlerts = False

and reset after.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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