MsgBox Loop

Joined
Feb 23, 2010
Messages
2
Reaction score
0
Hi! I'm looping through hundreds of excel workbooks using a loop macro. Unfortunately, each file starts with a MsgBox (with Y/N) that says "This file is confidential, are you sure you want to continue?"

What code can I use to make it say "Yes" automatically?

I've tried:

Code:
Application.DisplayAlerts = False
but that didn't work (the MsgBox still popped up).

I've also tried:

Code:
SendKeys "y"
but that didn't work either - MsgBox still popped up.
frown.gif


Please help! Thank you!!
 

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