Results 1 to 7 of 7

how to know in which order it is sorted

Threaded View

  1. #1
    Registered User
    Join Date
    02-16-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    78

    how to know in which order it is sorted

    Hi,

    I have some headers in my sheet. When they click on the header it has to be sorted.

    When it is sorted by ascending and next time when they click header I want it to be sorted by descending.

    Right now I have implemented to sort Descending . Now how will I check in which order does it sorted?

    If know the order in which it is sorted currently then I will sort it in the opposite way..

    If Target.Cells.Column = Range("D.ReportDate").Column Then
                Range("D.TotalRange").Sort Key1:=Range("D.ReportDate"), Order1:=xlDescending
    End If
    Last edited by Ranjani; 03-29-2009 at 11:27 PM. Reason: including code tags

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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