Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default How to sort on the row selected by user?

1. I have code that store the column selected by the user,
2. I know how to select the cells I want sorted
3. I need the entire selection sorted not just one column

this is my code for the selection which works fine:
x = Range("A" & Rows.Count).End(xlUp).Row
Range("A11", "AA" & x).Select

If the user selected column "B" to sort on, what would be the code to
execute the sort?
-JEFF-
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get user selected range into RefEdit J. Hall Excel Programming 2 April 9th 04 05:05 PM
Referring to a user-selected range James Mc Excel Programming 2 January 27th 04 07:46 AM
Identify Range Selected By User RonF Excel Programming 1 January 9th 04 05:29 PM
Checking to see if user selected an Option Kirk[_2_] Excel Programming 1 August 27th 03 09:46 PM
How to find out what the user selected? Mike[_31_] Excel Programming 0 July 24th 03 11:02 AM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"