Hi all,
I have a master workbook where I run a maro to open a bunch of xml documents and copy data from them. Not all the workbooks have the same headings on the same place. So my macro looks for a certain name of the heading and then he copies that data only, goes back to the master workbook and looks for the same heading and paste it there. The problem I have is that I need to tell them with finalrow where to put the data. but since I use the
it will always check the same column, if for a reason the next column to copy is in another column, it will paste it wrong.
How can I paste in the column that is active and taking in acount that the data for the first time goes in the 3rd row and not the first (in row 1 there is the macro button and row 2 has the headings of the master workbook).
Please see my code and let me know changes I need to make:
Thanks in advance and greetings.
Bookmarks