Results 1 to 19 of 19

code problem excel 2003 to 2010

Threaded View

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2003, 2010
    Posts
    15

    code problem excel 2003 to 2010

    I have this code assigned to a button in excel 2003 but when I open the file in excel 2010 the button does not work. Any help would be appreciated. The file is opened in compatibility mode. It's .xls

    Thanks!

    Private Sub SORT_Click()
        Dim myRng As Range
      
            With ActiveSheet
            Set myRng = .Range("A3:Z" & .Cells(.Rows.Count, "A").End(xlUp).Row)
            myRng.SORT Key1:=Range("A3"), Order1:=xlAscending, Key2:=Range("O3") _
            , Order2:=xlDescending, Header:=xlNo, OrderCustom:=1, MatchCase:=False _
            , Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, DataOption2:= _
            xlSortNormal
            End With
        myRng.Rows.AutoFit
        Range("A3:A3").Select
    End Sub
    Last edited by 6StringJazzer; 01-08-2014 at 10:34 AM. Reason: code tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2003 to Excel 2010 and back to Excel 2003 problem
    By keops9876 in forum Excel General
    Replies: 1
    Last Post: 02-02-2013, 07:30 PM
  2. Macro works fine in 2010, Crashing in 2003 - Posting problem code - Please Help?
    By RDAmidwest in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 04:14 PM
  3. Code won't work in Excel 2003, but will in 2007/2010
    By Mak2145 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-30-2012, 12:23 PM
  4. Code From 2003 to 2010 excel not working
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-20-2011, 12:41 PM
  5. Code error, after switching to Excel 2010, from 2003
    By EMoe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2011, 05:12 PM

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