XML and Excel macros?

IowaBearcat

New Member
Joined
Jun 27, 2011
Messages
1
New to the board, but I have a question as to whether or not this is even possible.

I have an XML file that is randomy generated from a program that is needed to decipher column headers in Excel. For example, the XML file says:

AS_00 = Address
AS_01 = Name
AS_02 = Birthplace

The data in excel is full columns of information with column headers of "AS_00", "AS_01", etc.

So naturally, its easier to match them up, one at a time, but the problem is this:

Each XML file is randomly generated for some terrible reason and while one XML file looks like above, the next one could look like this:

AS_00 = Name
AS_01 = Birthplace
AS_02 = Address

So all of my XML files are different, thus each Excel file is different. They all contain the same information, but both are generated in a differnet order/sequence.

So the big question and point (sorry for the long explaination), is:

Is there is any way to program in Excel to read an XML file and replace headers? If I can get everything into Excel, it's easier to manage columns than it is to manually change and match-up each column header.

Thanks in advance.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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