+ Reply to Thread
Results 1 to 5 of 5

Join various columns from two data sheets

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Join various columns from two data sheets

    Hi, I wish to join few columns from two data sheets using Macro function.

    Sample
    Sheet 1:
    A B C D E
    1 Headline Msg1 Msg2 Msg3 Msg4
    2 Car Post Join Help AAA

    Sheet 2:
    A B C D E
    1 SumNo Msg1 Msg2 Msg3 Msg4
    2 CM001 Join Help AAA BBB

    Output;
    A B C D E F
    1 Headline SumNo Msg1 Msg2 Msg3 Msg4
    2 Car Post Join Help AAA
    3 CM001 Join Help AAA BBB

    Hope any ones can help. Thanks a lot
    Last edited by rylo; 01-07-2009 at 03:01 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Straight copy?

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57
    Thanks, however the output is not my desire output. I have many rows for each data sheet. My desire output is copy selected columns for sheet1 and paste it to sheet3, then copy selected columns for sheet2 and paste it at last row of data from sheet1.

    Your code just select one row for each data sheet.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Hard to tell from your post just what goes where, but try this.
    Please Login or Register  to view this content.
    rylo

  5. #5
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57
    Thanks Rylo, it works.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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