+ Reply to Thread
Results 1 to 2 of 2

Sort Macro problem when Share Workbook enabled

Hybrid View

  1. #1
    Registered User
    Join Date
    09-03-2010
    Location
    NA
    MS-Off Ver
    Excel 2003
    Posts
    20

    Sort Macro problem when Share Workbook enabled

    Hi I had recorded a macro for sorting which works fine but once I switch the file to 'Share Workbook', the sorting macro sorts the header field as well??

    Any suggestions on a fix? Thanks

      ActiveWindow.SmallScroll Down:=54
        Range("A3:J80").Select
        ActiveWindow.SmallScroll Down:=-84
        Selection.Sort Key1:=Range("H3"), Order1:=xlAscending, Key2:=Range("E3") _
            , Order2:=xlAscending, Key3:=Range("A4"), Order3:=xlAscending, Header:= _
            xlGuess, OrderCustom:=6, MatchCase:=False, Orientation:=xlTopToBottom, _
            DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
            xlSortNormal

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Sort Macro problem when Share Workbook enabled

    Try setting Header:= xlGuess, to Header:= xlYes.
    Martin

+ 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