+ Reply to Thread
Results 1 to 2 of 2

sort data

  1. #1
    Registered User
    Join Date
    03-26-2007
    Posts
    63

    sort data

    I need to create a macro that will sort the entire data based on the double click event. For example.. When B1 is double cliked the data should be sorted by Column B. The code will applicable on all columns. So if say i double click on C5 then the data should be sorted by Column C. Macro shud also contain the functionality of the sorting that lets say someone clicks on the same column again then it will invert the sort direction.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    Quote Originally Posted by shahcu
    I need to create a macro that will sort the entire data based on the double click event. For example.. When B1 is double cliked the data should be sorted by Column B. The code will applicable on all columns. So if say i double click on C5 then the data should be sorted by Column C. Macro shud also contain the functionality of the sorting that lets say someone clicks on the same column again then it will invert the sort direction.
    This code would work when double clicking,
    Please Login or Register  to view this content.
    AS for undoing the macro, I suppose an Undo macro would work
    Check it out here
    http://www.j-walk.com/SS/excel/tips/tip23.htm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1