Turing off warnings

G

Guest

I often use the following in Access code to prevent msg's appearing when I'm
running a sequence.

DoCmd.SetWarnings False

Does anyone know if a similar bit of language works for Excel in VBA? I've
tried the above but Excel doesn't appaer to like it.

When I run the code I am copying data from several locations and it keeps
asking if I want to overright the existing data.

Any help appreciated.
 
O

okrob

I often use the following in Access code to prevent msg's appearing when I'm
running a sequence.

DoCmd.SetWarnings False

Does anyone know if a similar bit of language works for Excel in VBA? I've
tried the above but Excel doesn't appaer to like it.

When I run the code I am copying data from several locations and it keeps
asking if I want to overright the existing data.

Any help appreciated.

DisplayAlerts = False

but when you're done with the code, be sure to turn it back on...

DisplayAlerts = True

Rob
 
D

Dave Peterson

I think Rob meant:

application.displayalerts = false
'....
application.displayalerts = true
 

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