Results 1 to 10 of 10

Sorting problem 2003 vs 2007

Threaded View

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    Blantyre, Malawi
    MS-Off Ver
    Excel 2003
    Posts
    20

    Question Sorting problem 2003 vs 2007

    Hi All,

    The code below works fine on a machine running Excel 2003 but when transferred to a machine running Vista with Excel 2007 I get a “Run time Error 1004”

    Is there a way to have the same code run on both versions?

    PS I have deliberately done all my development in 2003 believing that it would all work on 2007 but that it would not work the other way around. Am I correct?

    Regards,

    Alan


    FinalRow = Cells(Rows.count, 1).End(xlUp).Row
     Range("A2:Z" & FinalRow).Select
        Selection.Sort Key1:=Range("T2"), Order1:=xlAscending, Key2:=Range("S2") _
            , Order2:=xlAscending, Key3:=Range("V2"), Order3:=xlAscending, Header:= _
            xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
            DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
            xlSortNormal
    Last edited by AlanAnderson; 07-20-2010 at 05:49 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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