Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent Overwrite Warning in VBA

Tags:

excel

vba

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 column then run Text to Columns to split out the data.

The macro works really well, but I get an annoying warning asking if I want to replace the data:

enter image description here

Is there a way to suppress the warning?

like image 517
Spionred Avatar asked Feb 12 '26 19:02

Spionred


1 Answers

source: SolutionSite

To suppress the warnings:

Application.DisplayAlerts = False

To activate the warnings:

Application.DisplayAlerts = True
like image 195
Pascal Avatar answered Feb 15 '26 16:02

Pascal