Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having trouble retaining blank rows in a worksheet upon sorting,
I have the sort code as follows: Sub SortJS() WS.Activate Selection.Sort Key1:=Range("G2"), Order1:=xlAscending, Key2:=Range("E2") _ , Order2:=xlAscending, Header:=xlYes, OrderCustom:=1, MatchCase:=False _ , Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, DataOption2:= _ xlSortNormal End Sub As normal any blank rows are wiped out, I can't find a good way to prevent this from happening so I need to know if there is an "Column Index" function in Excel similar to MS Access where an Index column is automatically numbered and corrected for any new or deleted entries. If this is possible I can use this column to sort all of the data and keep it hidden. Thanks, Chad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMPRODUCT - Ignore blank rows | Excel Worksheet Functions | |||
ignore blank rows | Excel Programming | |||
Indexing/Polulating Rows | Excel Worksheet Functions | |||
Ignore blank rows to populate custom drop down list column range | Excel Programming | |||
Visible Rows Indexing | Excel Programming |