+ Reply to Thread
Results 1 to 3 of 3

Code created in Excel 2010 does not work with Excel 2013

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    124

    Code created in Excel 2010 does not work with Excel 2013

    Hi All,

    I have being trying to help a user on another thread. The attached file has some code I wrote in Excel 2010 which works fine, however it gives him errors when used with Excel 2013.

    The code is written to:
    1) Populate cells based on selection from a combobox on Sheet1 cell C4. (If sheet is protected this code will also unprotect it, make changes then protect again)
    2) Protect/Unprotect (asking for password) Sheet1 using an activex commandbutton on Sheet1 cells E2:F3 (this code also re-names the activex button when it is pressed)

    I wondered if anyone could please help diagnose if it is a compatibility (2010-2013) issue or problem with my code? I have no experience with 2013!

    Thanks in advance

    Regards
    Steve
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    34,259

    Re: Code created in Excel 2010 does not work with Excel 2013

    I don't have 2013 (yet) but I can't see anything that's an obvious candidate.

    Check in Tools | References for any missing references. Different versions of Excel may use different libraries ... and the error reported may have nothing to do with the missing library.

    The ComboBox1_Change could be:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    124

    Re: Code created in Excel 2010 does not work with Excel 2013

    Hi TMS,

    Thanks for your advice, I can check this myself as I also do not have 2013. I will ask the guy on the other thread to do this with his version.

    Regards
    Steve

+ 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. Excel 2013 won't run a macro attached to button created in excel 2003
    By Jonno1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-30-2020, 01:16 AM
  2. Macros written in Excel 2010 don't work in Excel 2013
    By Bukovnik in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-03-2015, 01:24 AM
  3. My Excel 2003 vba code does not work in excel 2010. Somebody help!
    By DeNam in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-01-2013, 10:05 AM
  4. VBA code created in Excel 2003, not working in Excel 2010, Getting error message 400.
    By rajeshapril14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-24-2012, 05:19 AM
  5. Will a Macro created in excel 2007 work in the 2010 environment?
    By mprmanzano in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2012, 06:33 AM

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