+ Reply to Thread
Results 1 to 5 of 5

VBA Code Needed..using Concatenate & Compare Duplicates

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Post VBA Code Needed..using Concatenate & Compare Duplicates

    Hello all,

    I need a Macro coding for the below situation:

    Macro should Concatenate the text in ID & Track...compare with the other ID& Tracks for Duplicates and should print only the once if there is any Duplicate.

    I have attached sample file.

    Thanks for all the assistance.

    Regards,
    NG
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Code Needed..using Concatenate & Compare Duplicates

    Hello naven_ng,

    Welcome to the Forum!

    The following macro has been added to the attached workbook. The table on "Sheet1" has been copied to "Sheet2". A button on "Sheet2" will run the macro and modify the "Sheet2" table. You can change the worksheet and the starting range (first cell below the header) if you need to in the macro. These have been marked in bold text.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: VBA Code Needed..using Concatenate & Compare Duplicates

    Thanks lot Ross...Appreciate all your help.

    Sorry...I know the issue is resolved. But when reply to this thread i did not get that option.

    Regards,
    naven_sg

  4. #4
    Registered User
    Join Date
    08-23-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: VBA Code Needed..using Concatenate & Compare Duplicates

    Ross..Thanks for the update.

    But I just small correction to the coding. I thought of editing my self, but with no success.

    The appearance of the data is bit diffrent what i have provided earlier.

    I have attached excel file with data. Can you please help me out.

    Thanks for all your help.

    Regards,
    naven_sg
    Attached Files Attached Files

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Code Needed..using Concatenate & Compare Duplicates

    Hello naven_sg,

    I updated the macro. There is one significant change to the worksheet. A new column was added "C". This column contains no data and is hidden. The reason for this was to maintain groups of three cells across. Here is the updated macro that has been added to the attached workbook.
    Please Login or Register  to view this content.
    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)

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