Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Had a few problems with your code, but you answered my question. I was
inputting the key value wrong. Thanks for the help. "TomPl" wrote: I'm not sure the point to all of this, but the following should do what you have described. This will sort the data in columns A thru N based on the value in column A. Only rows 4 thru the row of the active cell will be sorted. Sub SortSelection() Dim rngCell As String rngCell = ActiveCell.Row ActiveSheet.Range("A3:N" & rngCell).Sort Key1:=Range("a4"), Order1:=xlAscending, Header:= _ xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal ActiveSheet.Range("A" & rngCell).Select End Sub Hope'n this works. Tom |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to find cells that refer to data in other cells in excel | Excel Discussion (Misc queries) | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
Using cells to refer to worksheets | Excel Worksheet Functions | |||
Why do some Excel cells refer to e-mail? | Excel Worksheet Functions | |||
To get a lot of charts that refer to different cells | Charts and Charting in Excel |