+ Reply to Thread
Results 1 to 2 of 2

How do I make a section sort automatically?

  1. #1
    Wicus
    Guest

    How do I make a section sort automatically?

    I want a section to sort itself automatically when the information is updated

  2. #2
    Gary''s Student
    Guest

    RE: How do I make a section sort automatically?

    If the section is A1 thru C10 (no headers), then enter the following in
    worksheet code:

    Sub Worksheet_Change(ByVal Target As Excel.Range)
    If Intersect(Range("A1:C10"), Target) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Range("A1:C10").Sort Key1:=Range("A1")
    Application.EnableEvents = True
    End Sub

    This will cause automatic re-sort (using column A as the key) after the data
    has been updated.
    --
    Gary''s Student


    "Wicus" wrote:

    > I want a section to sort itself automatically when the information is updated


+ 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