Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default CODE TO SORT

What code could sort the CURRENT selection (which may be of any size) on the
basis of the ACTIVE cell?

--
Best Regards,

Faraz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default CODE TO SORT

Do you mean?

Selection.Sort Key1:=ActiveCell, Order1:=xlAscending

If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

What code could sort the CURRENT selection (which may be of any size) on the
basis of the ACTIVE cell?

--
Best Regards,

Faraz

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default CODE TO SORT

Unbelievably Excellent Buddy!
--
Best Regards,

Faraz


"Jacob Skaria" wrote:

Do you mean?

Selection.Sort Key1:=ActiveCell, Order1:=xlAscending

If this post helps click Yes
---------------
Jacob Skaria


"Faraz A. Qureshi" wrote:

What code could sort the CURRENT selection (which may be of any size) on the
basis of the ACTIVE cell?

--
Best Regards,

Faraz

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
sort by zip code daniel Excel Discussion (Misc queries) 2 March 17th 09 11:05 PM
sort by code Jay Excel Discussion (Misc queries) 1 February 11th 08 01:09 PM
code to match and sort anny Excel Programming 5 February 12th 06 11:38 PM
Sort Code Newbie1092 Excel Programming 0 December 27th 05 06:13 PM
vba code to sort data? eadie Excel Programming 3 December 23rd 03 02:09 PM


All times are GMT +1. The time now is 06:30 AM.

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

About Us

"It's about Microsoft Excel"