richard smith

richard smith

  • NA
  • 327
  • 102.9k

Suppress The Excel Warnings

Feb 8 2013 5:35 PM
In Excel VBA I would use Application.DisplayAlerts = False

IN C# I have tried:
Excel.Application oXL;
Excel._Workbook oWB;

oXL.DisplayAlerts = false;
oXL.Parent.DisplayAlerts = false;

And neither of them suppress the warning "This file already exists...etc."

Answers (5)