+ Reply to Thread
Results 1 to 2 of 2

sort problem with first row

  1. #1
    smokiibear@gmail.com
    Guest

    sort problem with first row

    I am using the following code to sort first one column, then another:

    Selection.Sort Key1:=Range("B1"), Order1:=xlAscending,
    Key2:=Range("A1") _
    , Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
    False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal,
    DataOption2 _
    :=xlSortNormal

    however, the first row sometimes does not get sorted. How can I make
    sure the first row gets included in the sort?

    Thanks.

    Smokii


  2. #2
    Norman Jones
    Guest

    Re: sort problem with first row

    Hi SmokiBear,

    Try changing:

    > Header:=xlGuess

    to:

    Header:=xlNo

    ---
    Regards,
    Norman



    <smokiibear@gmail.com> wrote in message
    news:1121435270.504515.283330@g43g2000cwa.googlegroups.com...
    >I am using the following code to sort first one column, then another:
    >
    > Selection.Sort Key1:=Range("B1"), Order1:=xlAscending,
    > Key2:=Range("A1") _
    > , Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
    > False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal,
    > DataOption2 _
    > :=xlSortNormal
    >
    > however, the first row sometimes does not get sorted. How can I make
    > sure the first row gets included in the sort?
    >
    > Thanks.
    >
    > Smokii
    >




+ 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