Results 1 to 16 of 16

Autosort

Threaded View

  1. #1
    Registered User
    Join Date
    08-21-2011
    Location
    Rochester, ny
    MS-Off Ver
    Excel 2010
    Posts
    23

    Autosort

    I am having problems with an 'autosort'. When the values in h4 change, h4 sorts appropriately. The text seems to sort with it..however I have 3 dropdown boxes in D, F, M that are not sorting with the rest of the row. Can you help?


    Private Sub Worksheet_Change(ByVal Target As Range)
    Range("b4:m25").Select
       Selection.Sort Key1:=Range("h4"), Order1:=xlDescending, Header:=xlNo, _
           OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
           DataOption1:=xlSortNormal  
    End Sub
    Attached is a sample showing the before and after of the problem and the code.
    Attached Files Attached Files
    Last edited by giacc; 09-13-2011 at 01:09 PM.

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