richard smith

richard smith

  • 1.4k
  • 285
  • 160.8k

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)