Excel should let me sort on cell background color

  • Thread starter Thread starter Guest
  • Start date Start date
Mama

It's not standard functionality but you could put a UDF (User Defined
Function) in the workbook and then enter it in another column and sort by
that.

=ReturnColorIndex(A1)

UDF (Place in a standard module in the workbook)

Function ReturnColorIndex(rCell As Range) As Integer
Application.Volatile True
ReturnColorIndex = rCell.Interior.ColorIndex
End Function



--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
My great friend Dave Hawley www.OzGrid.com has some dowmloadable example
in XLS format sure you find something there, and VBA code is open source
too.

Jack
 
The cell where I put the function say #Name?. In detail, where do I copy in
the UDF? Tool - Macro - VBA - ? - ? - ?
 
Back
Top