Create multiple xml files from excel headers

alves

New Member
Joined
Jan 31, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
HI all,

Every month I have a major excel file with many columns and rows (it could be 300, 1000 rows, it's variable), as for the columns headers it's always the same.
If there's 1000 rows, I need to create 1000 metadata xml files from each row based on a xml file template.

My workflow at the moment using macro:
-select the entire row and run macro shortcut line by line and then paste it to notepad++ with generic xml files open
The macro consists of:
-copy the selected row in active sheet
-paste the values of the selected row in sheet1 which contains a formula
-copy the contents in sheet2 with the values from sheet1 creating the xml file structure
-return to active sheet

I'd like to create those files in bulk, some vba code to parse the contents of the excel file and generate the correctly formatted xml's.
Is this doable?
If you need code samples let me know.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Watch MrExcel Video

Forum statistics

Threads
1,127,316
Messages
5,623,961
Members
416,002
Latest member
Neshx

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
Top