Set the value of Application.DisplayAlerts
HRESULT OleSetWarnings( BOOL bWarnings );
The new value of Application.DisplayAlerts.
Header: xlpcom.h
CXllCom Class | CXllCom Methods | CXllCom::OleSetWarnings()