Pop Up Messages when saving a file

  • Thread starter Thread starter lorcanjc
  • Start date Start date
L

lorcanjc

I have a macro which selects data from a particular tab within excel.
It pastes this data into a new sheet and saves this as a text file.

The problem I have is that messages pop requesting confirmation to sav
etc.
I would like to get rid of these messages.

Any suggestions
 
H
use
....
application.displayalerts=false
'your saving code
application.displayalerts=true
....
 
To suppress pop-ups of this nature, enclose your code in
these lines:

Application.Displayalerts=False

....

Application.Displayalerts=True

Cheers, Pete
 

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

Back
Top