Archive of Mr Excel Message Board

Back to General Excel archive index
Back to archive home

Advanced sort - for conditional formatting
Posted by Kaveman on November 20, 2001 9:07 AM
I have a worksheet within a workbook that has a conditional format based on Column-C (date received (-) TODAY), the result would appear in column-A as a "number of days elapsed" since date received. Now I would like for the worksheet to sort by Column-A, then by Column-C automatically upon opening the workbook that contains this worksheet. Any ideas????

Re: Advanced sort - for conditional formatting
Posted by Ben O. on November 20, 2001 2:56 PM
If you make a macro called Sub Auto_Open(), it'll run whenever you open the workbook that it's in. So, you just need a macro that sorts by those columns. I recommend recording a macro, performing the operations you want, stop recording, and renaming the macro Auto_Open. If you post the code here, we can help you optimize it.
-Ben

Re: Advanced sort - for conditional formatting
Posted by Kaveman on November 21, 2001 12:59 PM
End Sub"
but have had no luck in getting it to send the active workbook (pivot chart). I am using Excel 2000, mail client is Outlook 2000?????

This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our
online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.