I am using Excel 2007. I have an Excel Sheet "Sheet1" in the workbook "Employee.xlsx".
It has about 20 columns and the number of rows varies. I wish to transfer only the first 10 columns ( all the rows included ) into an XML file ( "C:\Employee.xml" ).
The first row in Excel Sheet has title headers. The actual data starts from row number 2.
Could some one suggest me an Excel VBA Code for this.
I also wish to work on the opposite phonomenon also.
I have another XML file "C:\Dept.xml".
It is of the format
<dept>
<deptno>10</deptno>
<deptname>Accounting</deptname>
<deptloc>Dallas</deptloc>
<deptmanager>David Smith</deptmanager>
<deptno>20</deptno>
<deptname>Finance</deptname>
<deptloc>Miami</deptloc>
<deptmanager>Roger Brown</deptmanager>
</dept>
The XML file has several number of records, However I wish to obtain only records where
deptloc = 'New York' and transfer those records into an Excel Sheet "C:\Department.xslx".
I do not wish to have other records.
Please suggest me an Excel VBA Code to transfer partial XML data into Excel
It has about 20 columns and the number of rows varies. I wish to transfer only the first 10 columns ( all the rows included ) into an XML file ( "C:\Employee.xml" ).
The first row in Excel Sheet has title headers. The actual data starts from row number 2.
Could some one suggest me an Excel VBA Code for this.
I also wish to work on the opposite phonomenon also.
I have another XML file "C:\Dept.xml".
It is of the format
<dept>
<deptno>10</deptno>
<deptname>Accounting</deptname>
<deptloc>Dallas</deptloc>
<deptmanager>David Smith</deptmanager>
<deptno>20</deptno>
<deptname>Finance</deptname>
<deptloc>Miami</deptloc>
<deptmanager>Roger Brown</deptmanager>
</dept>
The XML file has several number of records, However I wish to obtain only records where
deptloc = 'New York' and transfer those records into an Excel Sheet "C:\Department.xslx".
I do not wish to have other records.
Please suggest me an Excel VBA Code to transfer partial XML data into Excel