+ Reply to Thread
Results 1 to 6 of 6

Sort VBA not backward compatible

  1. #1
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    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, England
    MS-Off Ver
    365
    Posts
    15,077

    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
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    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, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Sort VBA not backward compatible

    OK, look forward to hearing the result.

  5. #5
    Forum Contributor
    Join Date
    11-08-2017
    Location
    Murfreesboro, TN
    MS-Off Ver
    MS 365
    Posts
    168

    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, England
    MS-Off Ver
    365
    Posts
    15,077

    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)

Similar Threads

  1. Quick Question / Is Excel 2013 VBA backward compatible?
    By akaytie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2014, 05:30 AM
  2. How to calculate backward
    By port in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2014, 12:50 AM
  3. Backward prediction
    By arkiv in forum Excel General
    Replies: 1
    Last Post: 02-12-2014, 12:11 PM
  4. Backward Calculating
    By MoreSpeed in forum Excel General
    Replies: 5
    Last Post: 01-26-2009, 01:20 PM
  5. backward lookup
    By nabilqu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2007, 09:42 AM
  6. [SOLVED] Backward compatability
    By Michael Beckinsale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2006, 12:30 PM
  7. [SOLVED] Protect cells backward compatible
    By Datasort in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2005, 10:06 AM

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