+ Reply to Thread
Results 1 to 4 of 4

Data Move to Master from sheet1,sheet2 vba depends upon column heading value

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Data Move to Master from sheet1,sheet2 vba depends upon column heading value

    Dear expert

    I have workbook with 3 sheets Master,sheet1,sheet2 I want macro to pull data from sheet1 and sheet2 depends of master sheet heading values

    In sheet1 set of heading is similar to master headings but in sheet2 set of heading slightly missing 3 headings

    E.g Acutal Heading is 14 of master sheet and In sheet1 is 14,in sheet2 is 11....3 is column heading missing

    i uploaded sheets which is marked as yellow color in sheet2,as result of after macro done

    find the attachment of file

    thanks all
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Data Move to Master from sheet1,sheet2 vba depends upon column heading value

    Hi breadwinner. Assuming that sheet "MASTERDATA" is blank except for the column headers, try:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: Data Move to Master from sheet1,sheet2 vba depends upon column heading value

    If i extent the extra range of column heading or change column heading , or if i add new sheet next to sheet2 how its works
    for e.g see the attachment where marked yellow color headings look newly added column's

    code column header consider from master sheet to sub sheets, what ever avaliability of column header in sheet1,2,3 should move to master headings rows. with out limit of range...
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Data Move to Master from sheet1,sheet2 vba depends upon column heading value

    Try the attached. The code works if the headings on each sheet should exactly match the headings on the master sheet
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1