ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveWindow.ScrollColumn Sort (https://www.excelbanter.com/excel-programming/306883-activewindow-scrollcolumn-sort.html)

hotherps[_102_]

ActiveWindow.ScrollColumn Sort
 
Is there a way I can identify a range to be sorted without using th
scrollcolumn function.

I'm referring to the result of recording a macro selecting a range b
dragging you mouse.

My range = ("G11:CX298")

Thank

--
Message posted from http://www.ExcelForum.com


Tom Ogilvy

ActiveWindow.ScrollColumn Sort
 
set rng = Worksheets("Sheet5").Range("G11:CX298")
rng.Sort Key1:=rng(1,6) ' sort on column L as an example

The sheet doesn't even need to be visible.

--
Regards,
Tom Ogilvy

"hotherps " wrote in message
...
Is there a way I can identify a range to be sorted without using the
scrollcolumn function.

I'm referring to the result of recording a macro selecting a range by
dragging you mouse.

My range = ("G11:CX298")

Thanks


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com