Importing XML into EXCEL

karthikeyan.kannan

New Member
Joined
Jan 27, 2009
Messages
3
Hi All,

I have created my customized XML view in my excel using XML Source pane and I have saved that excel for my use. My requirement is to validate the data in the XML files and I am doing it via excels. So each time I am importing the XML into the excel and after validation I am closing the excel without saving and re-opening the excel to reload a new XML file for my next validation. Is it possible to create a macro to clear all the stuff that imported during my last validation and keep the excel ready for next XML file without closing and opening the Excel.

Any help is greatly appreciated!

Thanks,
Karthik
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi Karthik,

Not sure exactly what you mean but this macro will refresh the xml information.

Code:
Dim myXML As String
myXML = "myxmlname" 'CHANGE THIS TO THE NAME OF THE XML AREA
ActiveWorkbook.XmlMaps(myXML).DataBinding.Refresh

HTH
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top