+ Reply to Thread
Results 1 to 10 of 10

Issues with Excel 2010 vs 2013

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    22

    Issues with Excel 2010 vs 2013

    Is there a way to get a macro to work in 2013 that was previously working in 2010? The code for the spreadsheet was working and after an upgrade to 2013 I'm getting a "runtime error '5': Invalid procedure call or argument". I checked references and it doesn't show any missing libraries.

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Issues with Excel 2010 vs 2013

    It's not realistic to do. Joke!
    Show the file with the error and explain how to work with him.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Registered User
    Join Date
    08-07-2014
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    22

    Re: Issues with Excel 2010 vs 2013

    I'm trying to modify code done by someone else. The error code shows up for the highlighted line.
    Last edited by TLeng; 08-15-2016 at 11:50 AM. Reason: Can't get a file to attach.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Issues with Excel 2010 vs 2013

    Hi,

    What is the highlighted line?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    08-07-2014
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    22

    Re: Issues with Excel 2010 vs 2013

    Tried to attach a word document and a text file. Will hopefully have it figured out so that I can attach the file.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Issues with Excel 2010 vs 2013

    It is easy to post the code in a post rather than as an attachment.

  7. #7
    Registered User
    Join Date
    08-07-2014
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    22

    Re: Issues with Excel 2010 vs 2013

    It's a little long. The line with the issue is in red below.
    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Issues with Excel 2010 vs 2013

    I would check for valid arguments just before your instruction that makes the error.
    Try this just before the red line…
    Please Login or Register  to view this content.
    This will show the text being used and its length, which should be at least 4 characters in order for the instruction in red to work.
    If the length is less that 4 characters, then use a different calculation, for example…
    Please Login or Register  to view this content.
    This leaves strResult unchanged when it is very short. Adjust the alternate action as needed.


    Hope this helps.
    If this has been helpful, please click on the star at the left.

  9. #9
    Registered User
    Join Date
    08-07-2014
    Location
    Houston, Texas
    MS-Off Ver
    2010
    Posts
    22

    Re: Issues with Excel 2010 vs 2013

    Quote Originally Posted by StuCram View Post
    I would check for valid arguments just before your instruction that makes the error.
    Try this just before the red line…
    Please Login or Register  to view this content.
    This will show the text being used and its length, which should be at least 4 characters in order for the instruction in red to work.
    If the length is less that 4 characters, then use a different calculation, for example…
    Please Login or Register  to view this content.
    This leaves strResult unchanged when it is very short. Adjust the alternate action as needed.


    Hope this helps.
    Thank you for the guidance on this. I found out there wasn't anything being returned for the value and that lead to looking at the website that the code was pulling information from. The website changed some of the references on the site, so I can hopefully update that and get the code to work.

  10. #10
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: Issues with Excel 2010 vs 2013

    Glad to have helped a bit.
    Best wishes.

    PS - Be sure to mark this thread as 'Closed' now.

+ 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. [SOLVED] 2013-2010 Date addition issues
    By brandonq in forum Excel General
    Replies: 3
    Last Post: 01-15-2016, 12:58 PM
  2. excel 2013 issues
    By itobon in forum Excel General
    Replies: 1
    Last Post: 11-17-2015, 11:48 AM
  3. Compatability issues between Excel 2010 and Excel 2013?
    By Flammabubble in forum Excel General
    Replies: 0
    Last Post: 08-27-2015, 06:57 AM
  4. Macro Issues Transitioning from Ms. Office 2010 to 2013
    By lawliesugar in forum Excel General
    Replies: 0
    Last Post: 02-19-2015, 10:01 AM
  5. Excel 2010 macro combatibility issues with 2013.
    By ads1187 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2015, 05:04 AM
  6. Replies: 2
    Last Post: 11-11-2014, 04:25 AM
  7. [SOLVED] VBA compatibility issues: Excel 2007, 2010, 2013
    By AdLoki in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-29-2013, 07:01 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