Results 1 to 2 of 2

Sorting macro

Threaded View

joshag Sorting macro 03-05-2015, 12:35 PM
joshag Re: Sorting macro 03-05-2015, 08:58 PM
  1. #1
    Registered User
    Join Date
    11-28-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    73

    Sorting macro

    This is to find duplicate catalog items on a sheet. New numbering convention has changed the cat#'s from 1111223333 to something like 01111-22-3333. The only thing that stays constant is the catalog names.

    The sheets Row 1 is used by buttons to initiate "Find Duplicates" and "Finish". Row 2 is the column headers from the catalog sheet pasted into it. There are approximately 500 rows but this is subject to change week by week so 600 is a safe bet. There are two sheets "Main1" and "Main Sort" because after the duplicates are found they have to be taken to a second sheet where I have a series of formulas that combine some columns and divide others (PITA but works for now)

    The macros I have been using are mostly just clumsy "cut and paste" from the recorder. The first button/macro just sorts column C, starting at row 3, alphabetically and highlights the duplicate values of column C. The second button/macro copies the results from "Main1 Sort" (Row7 and beyond) back to "Main1" and then again sorts alphabetically. This process is done twice in the workbook with sheets 1 and 2 sorting the catalog and 3 and 4 sorting the inventory totals. Both use the same cat#'s and descriptions.

    I am attaching the cut and paste macros in hopes that someone can lean them out. The workbook struggles just to open with my nightmare macros.

    Thank you,
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sorting Macro
    By skip2mylew in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 09:54 AM
  2. [SOLVED] Sorting Macro and Inserting Row Macro help
    By juskojj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2012, 08:24 AM
  3. Sorting Macro?
    By zanakou in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2011, 11:55 PM
  4. help with sorting - macro
    By jw01 in forum Excel General
    Replies: 0
    Last Post: 01-13-2011, 04:11 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