Results 1 to 8 of 8

Macro to reorder duplicates (with condition that no two can be after the other)

Threaded View

  1. #6
    Registered User
    Join Date
    05-18-2015
    Location
    America
    MS-Off Ver
    MS Office 2010
    Posts
    23

    Re: Macro to reorder duplicates (with condition that no two can be after the other)

    Thank you, Kaper! It seems to work, but there were two places where duplicates were still together. I'm pretty sure it was something that I did, but this is what I changed in the code:

    Const dates = "A", fromcolumn = "A", numcolumns = 4, fromrow = 1

    The data with the dates is in column A, there are 4 columns of data that needs to stay with those dates A:D, the first row has the names of those columns. Did I do this correctly? Thanks for the help.


    There were still duplicates in John's approach, but I did not change the code to fit my data so that may be why
    Last edited by Faintkitara; 05-21-2015 at 10:24 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to reorder entries in a single cell
    By willi_42 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-13-2012, 12:04 PM
  2. Macro to delete duplicates based on condition
    By chris1983 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-05-2011, 08:56 PM
  3. Reorder Macro
    By MATT-C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2010, 09:08 AM
  4. macro to reorder a cell.
    By DAKPluto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2008, 12:51 PM
  5. Using a Macro to Reorder Data - tough one
    By Kesey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-16-2006, 11:15 PM

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