Consulting

Results 1 to 2 of 2

Thread: I need help edit code auto sort

  1. #1

    I need help edit code auto sort

    Hi
    I have code auto sort but not work good i need edit it
    Please


    Private Sub Worksheet_Calculate()
    Dim c As Range

    Set rg = Range("I7:I" & Rows.Count) 'Column containing names to sort


    Range("B7:Q" & Rows.Count).Sort Key1:=rg, _
    Order1:=xlDescending, _
    Header:=xlNo

    End Sub

  2. #2
    VBAX Mentor Teeroy's Avatar
    Joined
    Apr 2012
    Location
    Sydney, Australia
    Posts
    414
    Location
    More information is required. What is it doing / not doing that you want?
    _________________________________________________________________________
    "In theory there is no difference between theory and practice. In practice there is." - Chuck Reid

    Any day you learn something new is a day not wasted.

Posting Permissions

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