Excel.Application app; // = your Excel application.
app.Visible = false;
app.DisplayAlerts = false;
The DisplayAlerts
property is important to avoid having popups destined to the user. Especially if this code runs on a machine with no one to see the popup...