Followup to Using Excel 2003 XML features for a Poor Mans Schema Generator Post
One reader sent me a valid question regarding my post on the poor man’s version of a schema generator. He wants to know programmatically how he can import XML without gettting the following message from Excel:
Now can programmatically import using the following VBA command:
ActiveWorkbook.XmlImport URL:="books.xml", _
ImportMap:=Nothing, Overwrite:=True, Destination:=Range("$A$1")
Given a XML file on the local hard drive or available remotely via HTTP, you can import the XML and Excel will generate the schema for you. It turns out the ImportXML method is flexible. You can also import directly into a Map, or a new map will be created, overwrite existing data and indicate where the data should be imported into the workbook.
However, I could not find a way to programmatically prevent this dialog box from appearing. Of course, you could just check the box that says don’t pull it up again and it wont. I can’t help but wonder if there is a way around this. Anyone know of a solution?