+ Reply to Thread
Results 1 to 6 of 6

Sort VBA not backward compatible

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    2016
    Posts
    89

    Sort VBA not backward compatible

    I have a spreadsheet that was created in Excel 2016, but users may have versions back to 2010.

    I have some simple Sort VBA that works fine in 2016, but gives an error code in 2010. (see screen shot of error).

    SortError.png

    How can I adjust my code to make it work for the earlier version of Excel?

    Here's the code:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,987

    Re: Sort VBA not backward compatible

    Change Add2 to Add, that should then work as long as no-one is using 2003 or earlier.

  3. #3
    Registered User
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    2016
    Posts
    89

    Re: Sort VBA not backward compatible

    Thank you! I will send it to my user who is having trouble and let you know how it works.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,987

    Re: Sort VBA not backward compatible

    OK, look forward to hearing the result.

  5. #5
    Registered User
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    2016
    Posts
    89

    Re: Sort VBA not backward compatible

    Fluff13, I wanted to let you know that I finally heard back from my user. And your change worked. I really appreciate your help!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,987

    Re: Sort VBA not backward compatible

    Glad it worked & thanks for the feedback

+ Reply to Thread

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