ActiveWindow.ScrollColumn Sort

  • Thread starter Thread starter hotherps
  • Start date Start date
H

hotherps

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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top