Results 1 to 15 of 15

Remove duplicated rows and sort by cell color

Threaded View

  1. #1
    Registered User
    Join Date
    09-26-2022
    Location
    Honduras
    MS-Off Ver
    2019
    Posts
    8

    Post Remove duplicated rows and sort by cell color

    Hi all, I need to create two buttons for an excel sheet using VBA. Let me give you some context.

    Let's say I have a sheet named "database". The complete "A" column is emtpy because I need it for somethign else, nothing so relevant, the information of the database is filled from column B to column K, and of course all records are listed below that, means that the row from B1 to K1 has the titles of the columns, information starts from B2-K2, B3-K3 and so on until the final record.

    These record will keep increasing, new records will added, means the table "height" will variate a lot, but the "width" will be the same from B to K, and also, the column "K" will be empty of information BUT it will be filled with a color, I mean, a cell fill color and it will variate, yellow, brown, blue, red, pink, etc. ONLY COLUMN K WILL BE EMPTY OF INFO BUT FOR CELL FILL COLOR!

    Now what I need, please help me.

    Button 1: to eliminate rows with duplicated index in column B, it will cycle from start of the table to the end of the table/records removing the duplicated records withing the B column
    Button 2: It will sort all the table using as it's reference the colors in the column K, I don't mind the order of the colors, it can be by the order how they are shown in the database, what I need is to all the blue records be together, also pink, red and all.

    Please I'll appreciate your help.
    Last edited by martincast; 09-27-2022 at 10:44 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VB Code in Outlook VB code to delete excel files from certain folder
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2018, 02:47 PM
  2. [SOLVED] Excel VB code. Message pops up while code running asking question. Code must not wait.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2014, 06:10 AM
  3. [SOLVED] Excel Macro Visual Basic code not looking at all sheets with second section of code.
    By Heinrich Venter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2014, 08:26 AM
  4. Replies: 1
    Last Post: 11-13-2013, 10:28 AM
  5. Adding Text to another cell VB code (Help Tweeking code) (Excel 2007)
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 11:37 AM
  6. Code for email alerts from excel isn't working, wrong code possibly?
    By jessthorogood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 01:45 AM
  7. Importing Excel Macros Code from another Excel sheet which has Macro code.
    By arun.pillai in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2010, 05:38 PM

Tags for this Thread

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