Sorting

  • Thread starter Thread starter Guest
  • Start date Start date
Insert a seperate Column.
Then write this formula =CellColor(A2) and copy down the formula


To make the =CellColor(A2) function work: Alt+F11 > Insert Module >
Copy and paste the below VBA-code:

Public Function CellColor(myCell As Range) As Variant
Application.Volatile True
CellColor = myCell.Interior.ColorIndex
End Function


Ola Sandstrom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top