Geek Rant dot org

 

Mon 2005-10-17

Hiding Excel warnings during automation

Filed under: — daniel @ 18:26

Well, I sorted out my problem of confusing warnings appearing whilst controlling Excel with VBA. Turns out there is an Application.DisplayAlerts property which, when set to false, hides warnings such as the one I was getting. It took a little Googling to find the solution, which wasn’t readily apparently in any of the MS help for the methods I’d got the warnings from.

The other Office applications also have a DisplayAlerts property.

Digg this

Leave a Reply


24 queries. 0.740 seconds. Powered by WordPress