![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 40
|
Here's what I have.
A_________B_________C_ Name_____Date_____Time Joe _____05/14____7:37 Pat _____05/13____4:32 how can I run a macro that will automatically sort by column b, then by column c. Then insert a row before each unique date with the weekday name in it. To end up looking like A______B______C ______MONDAY_____ PAT____5/13___4:32 ______TUESDAY______ JOE____5/14____7:37 Any help has been greatly appreciated, and continues to be. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 175
|
Hi,
a clunky way of doing it would be to insert subtotals at each change of date, then replace the subtotals with a formula to give the date. This doesn't involve macros, though Rgds,Mike |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 40
|
That's not quite what I had in mind, but thanks for trying. I know I can assign the sort macro to a button, I just really need to know how to do some (GULP) VBA scripting to locate each unique date
insert a row before each unique date assign the Weekday name for the date with fill color gray, font color white, and centered. Thanks to all |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|