copy from multiple wbooks (with inconsistent headers & data) into one master wbook

dellzy

Board Regular
Joined
Apr 24, 2013
Messages
146
Hi All,


I have been trying to create a template that can allow user merge multiple worksheets from multiple workbooks into one master workbook. The content being copied into the master workbook should be based on the header pre-defined in at Row 1 (not case-sensitive).


I found on the net to merge wsheets and workbooks but it doesn't do validation check on the content before it merges. it just copy the whole range that content data as per column counted in that worksheet. This gives me the hassles because in the multiple sheets and wbooks have inconsistent arrangement of columns and I have to arrange all these first one by one first before I merge them.


Eg.
Master Workbook should have all data based on the headers below:-
Name | Age | Mobile# | Occupation | address | Gender


Workbook1 sheet 1 have data based on headers below:-
Name | Gender | Age | Address | Occupation | mobile


Workbook2 sheet 4 have data based on headers below:-
Name | Occupation


Workbook 3 sheet 1 have data based on headers below:-
name | age | mobile# | occupation | address | gender




I hope I have explained my problem clearly. Would appreciate your expertise to help.


Thank you in advance.


Best Regards,
DZ
 

Forum statistics

Threads
1,081,545
Messages
5,359,445
Members
400,528
Latest member
Ratish52

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top