I am writing a macro to extract XML data from a Web API into a spreadsheet. The first column contains two fields delimited with a comma so I have extended the macro to insert a
source: SolutionSite
To suppress the warnings:
Application.DisplayAlerts = False
To activate the warnings:
Application.DisplayAlerts = True
Application.DisplayAlerts = False
Two important points from the documentation:
[...] when a message requires a response, Microsoft Excel chooses the default response.
and
If you set [DisplayAlerts] to False, Microsoft Excel sets [it back] to True when the code is finished [...]
meaning you'll still have the standard "Do you want to save before closing?" etc. prompts during normal Excel use.