Consulting

Results 1 to 4 of 4

Thread: Data sort a dynamic range of conditionally formatted cells?

  1. #1

    Data sort a dynamic range of conditionally formatted cells?

    I understand if this isn't possible to do but I thought there would be no harm in asking, if anyone IS able to help!


    I have a selection of data in columns A to L. The number of columns stays the same but the number of rows will change every day. I have 1 row at the top containing headers.

    I want to write a macro to data sort based on the conditionally formatted cells in column J. The manual 'data sort' looks like this:
    Sort by: Column J: Cell Color: Red: On Bottom
    Then by: Column J: Cell Color: Green: On Top
    Then by: Column J: Cell Color: Yellow: On Top
    Then by: Column J: Cell color: Orange: On Top


    Anyone know if this is possible?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Add a helper column with a formula that emulates the CF, and sort by that.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Hi xld,

    Sorry not sure what you mean by this, how do I do this?

  4. #4
    I've figured out how to do this now, thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •