Closing a Window

C

Chuck Taylor

A question about automatically closing some "popup" windows from VBA -

I'm importing data from another spreadsheet by selecting a range and
then copying the range to the new spreadsheet (works fine, BTW).

Then, I close the original spreadsheet and get two popup boxes: (1) Do
you want to save changes? and (2) You have alot of data on the
clipboard....

I got rid of having the first one popup by using the
"Activeworkbook.close savechanges:= false" line.

Any idea how to automatically close the second type of window?

Thanks!
 
C

Combo

Is very probably you user any function like cut or copy in any time of your
project.

Put this code just befour close command :Application.CutCopyMode = False

like this:

Application.CutCopyMode = False
Activeworkbook.close savechanges:= false


bye...
 

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