Auto sorting
VBA Telemetry pings you when your VBA projects fail
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Auto sorting

  1. #1
    New Member
    Join Date
    Feb 2002
    Location
    North West
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Is there any simple way to automatically update a sorted list? Depending on values in a list I would like it to sort itself automatically. I have used some sort of bubble sort mechanism before but it's very long winded. Cheers.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    I think that you would have to do this using Macros.

    Using something like this

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A1:A5")) Is Nothing Then
        Range("A1:A5").Sort Range("A1"), xlAscending, Header:=xlYes
    End If
    End Sub
    In Here, I'm sorting Range("A1:A5") each time one of the cells changes. I'm also assuming it has a title.
    Regards,

    Juan Pablo González
    http://www.juanpg.com

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com