Geek Rant dot org

 

Sat 2005-10-15

Needless Excel automation warnings

Filed under: — daniel @ 07:48

Okay, this is annoying. I’m working on a VB program that uses the Excel object library to automate a fairly complex update into Excel. The general idea when you’re automating Excel is to smoothly do your operation behind-the-scenes, to hide the complexity from the user.

Excel warning

So the last thing you need is complicated dialog boxes popping up to ask the user questions. I’m the programmer: I’m meant to make the decisions. Tell me, the programmer, that if I save this Shared Workbook with a password that certain parts of the file won’t be encrypted. Don’t tell my user, and ask them to decide if it should happen or not.

Digg this

One Response to “Needless Excel automation warnings”

  1. Geek Rant dot org Says:

    Hiding Excel warnings during automation

    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…

Leave a Reply


26 queries. 0.323 seconds. Powered by WordPress