+ Reply to Thread
Results 1 to 4 of 4

Copy row of data, remove duplicates, paste into a different worksheet

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Copy row of data, remove duplicates, paste into a different worksheet

    hi everyone,

    I have the following code:

    Please Login or Register  to view this content.
    What I'm trying to do is copy all values in column A starting at A8 in worksheet Off-Site - A Distance, remove all duplicates, then paste the results in column B starting at B2 in worksheet Rating Summary. The results I'm getting appear to be erratic. In some instances only the first entry in the Off-Site - A Distance appears in the second worksheet at B2. Other times the whoe list appears but it starts at B8, and still another time the results don't show at all. I am not getting any errors.

    Any ideas?

    Thanks!

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Copy row of data, remove duplicates, paste into a different worksheet

    Simple array construction can do this.. job.
    but you have to attach a sample file with expected result..

    Don't forget to click *

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Copy row of data, remove duplicates, paste into a different worksheet

    Thanks Vikas. I'm afraid I cannot attach a sample file due to the sensitivity of the contents. however, I hope my description of how the results are supposed to look is sufficient.

    Thanks,

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

    Re: Copy row of data, remove duplicates, paste into a different worksheet

    You need to remove the error trapping to see why the code errors. This mask the error, but will not address the error.


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trying to find duplicate, copy and paste certain unique values, and remove the duplicates
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-24-2014, 04:21 AM
  2. Replies: 2
    Last Post: 01-13-2014, 10:52 AM
  3. Copy columns, remove duplicates and paste different worksheet and column query
    By Chris* in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 06:52 AM
  4. Macro that would Copy/Paste to new sheet and remove duplicates
    By dani_n88 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-11-2012, 06:04 PM
  5. Copy/Paste Remove Duplicates
    By Rage in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 07:38 AM

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