Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a presorted Excel worksheet, & I'm trying to sort only the top part of
it from where I end up after the 1st sort (the 1st blank line after the top part of the worksheet, but in tht middle of it[a daily variable starting point]). This recorded macro & my attempt to get it under my control, sorts the whole worksheet & gives me an error 1004 @ Range("J3:J", colA): Sub SortJtop() Dim Blank As Double Blank = ActiveCell ' Grab the row # of the starting (blank) cell ActiveCell.Sort Key1:=Range("J3:J", colA), Order1:=xlAscending, Header:= _ xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal End Sub To clarify, I need to sort from row 3 to row x (a daily variable #, not the end of the worksheet) in column J. sutibusan -- sutibusan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I want sort a list but the sort is unlit on the home tab how do I | Excel Worksheet Functions | |||
Select a list, then sort | Excel Programming | |||
how to randomly select a name in a list and then the select the ne | Excel Worksheet Functions | |||
Excel sort by Fill Color by custom list sort | Excel Discussion (Misc queries) | |||
Select and then sort a list | Excel Programming |