#1   Report Post  
emillay9
 
Posts: n/a
Default Sorting by Colors

Multiple answers to this question -but if you don't know what the heck a UDF
is, or how to program the column once you've done that -- then how can you do
this?
Would someone of a genius nature care to be explicit and really give step by
step directions so a beginner could actually do this and make it work? I
have now spent over 2 hours going from Pearson's site to the other site and
working working working and no to avail. I'm just not smart enough to make
it go without better directions.. so I would appreciate any and all help -
even privately. Thank you!
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default Sorting by Colors

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Short course:

Open your workbook.
Hit alt-f11 to get to the VBE (where macros/UDF's live)
hit ctrl-R to view the project explorer
Find your workbook.
should look like: VBAProject (yourfilename.xls)

right click on the project name
Insert, then Module
You should see the code window pop up on the right hand side

Paste the code in there.

Now go back to excel.
Into a test cell and type:
(if you want the fill color)
=ColorIndexOfCell(a1)
(or if you want the font color)
=ColorIndexOfCell(a1,true)

If that works ok, then just fill up a helper column with your formula and sort
by that.



emillay9 wrote:

Multiple answers to this question -but if you don't know what the heck a UDF
is, or how to program the column once you've done that -- then how can you do
this?
Would someone of a genius nature care to be explicit and really give step by
step directions so a beginner could actually do this and make it work? I
have now spent over 2 hours going from Pearson's site to the other site and
working working working and no to avail. I'm just not smart enough to make
it go without better directions.. so I would appreciate any and all help -
even privately. Thank you!


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Cells by Colors swiftcode Excel Discussion (Misc queries) 2 September 26th 05 10:53 AM
Sorting by colors Hecwill Excel Discussion (Misc queries) 3 August 11th 05 07:06 PM
custom cell pattern colors Shooter Excel Worksheet Functions 0 May 10th 05 08:23 PM
How to add fill colors (cell shading) in EXCEL? Donna Sherman Excel Discussion (Misc queries) 2 April 21st 05 07:24 PM
Colors of columns after sorting data in the supporting table Booger_Boy Charts and Charting in Excel 6 January 24th 05 02:41 PM


All times are GMT +1. The time now is 04:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"