5
Answers

Suppress The Excel Warnings

Photo of richard smith

richard smith

12y
6.9k
1
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)