Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Andrew
This will sort your data based on the populated data in Column F. Change F to which ever row contains the most relevant data. Take care Marcus Sub Sortme() Dim N As Long N = Range("F" & Rows.Count).End(xlUp).Row Worksheets("sheet2").Range("A2:F" & N).Select 'Sort part add if needed. Selection.Sort Key1:=Range("D2"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting and grouping data with varying number or rows | Excel Worksheet Functions | |||
Chart changing based on change in data source (number of rows/colu | Charts and Charting in Excel | |||
Sorting Rows Based on data in one column | Excel Discussion (Misc queries) | |||
Sorting with variable number of sort fields | Excel Programming | |||
Copy Formula loop based on number of rows w/ data in a col B. | Excel Programming |