ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sort by bold? (https://www.excelbanter.com/excel-programming/319482-sort-bold.html)

Joe Murphy

sort by bold?
 
Anyone have a macro that will allow me to sort by whether a cell is bold or
not? Using Excel2003.

Thanks,
JM



Bob Phillips[_6_]

sort by bold?
 
Joe,

You need a helper column, and use a UDF to determine if bold

Function IfBold(rng As Range)
IfBold = rng.Font.Bold = True
End Function

and in the adjacent column use

=IfBold(A1) and copy down.

Then sort on that column.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Joe Murphy" wrote in message
...
Anyone have a macro that will allow me to sort by whether a cell is bold

or
not? Using Excel2003.

Thanks,
JM






All times are GMT +1. The time now is 06:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com