+ Reply to Thread
Results 1 to 13 of 13

Compatibility issue with code writen in excel 2007 and used in 2010

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Compatibility issue with code writen in excel 2007 and used in 2010

    Good day all,

    I did a search and could not find what I was looking for. A While back, I created an excel document to automaticaly generate an order sheet when quantities are changed in the inventory form. It all worked fine until today when we updated the computers from windows XP/Office 2007 to Window 7/Office 2010.

    Now I found that CalenderControl is not available anymore and that's only a small inconveniance, but the order sheet doesn't work either. I a ''Compile error: Can't find project of library'' error message.

    I have a very basic understanding of VBA and Macros, and this exceeds what I know.

    Here is one of the several documents I use. It's in french, but the code is in english. How it works, when I change the data in Column F (Qte Disp) it it updates Column G (Qte Comm.). When a cell in Column G is other than 0, it automatically copies and paste pre-established data into the order sheet (named Commandes).

    Ambulance (Version 2.7) - Copy.xlsm

  2. #2
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    I need to add also, I'm 100% new to Office 2010, used it for the first time today at work. All my work was done in Office 2003 and 2007.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Hi cdn_medic

    I'd guess these two issues are related.

    Are you the ONLY user?

    If you ARE the ONLY User, see this Link

    http://www.excelforum.com/excel-prog...r-library.html

    If you're NOT the ONLY User I'd suggest a different approach. Let me know.
    Last edited by jaslake; 01-30-2014 at 06:26 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    My order sheet is the main goal in this document, the calendar was only a nice little feature.

    I tried cancelling the code related to the calendars using " ' " in front of every line. It still gave me the error message when change values to generate the order sheet.

    I'll try removing all calendars see if that works... But I have to wait until tomorrow at work... at home I have Office 2007
    Last edited by cdn_medic; 01-30-2014 at 07:05 PM.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Hi cdn_medic

    I can only say this...I ran your Code in Excel 2010 without Error...I have the MSCAL.OCX installed and registered as detailed in the Link I provided.

    This error message tells me the two issues are related
    error: Can't find project of library
    I'll ask again
    Are you the ONLY user?

    If you ARE the ONLY User, see this Link

    http://www.excelforum.com/excel-prog...r-library.html

    If you're NOT the ONLY User I'd suggest a different approach. Let me know.

  6. #6
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    I'm not the only user, but if I can follow the procedure above (work for the government, no admin access) I'll do it on all the computers used for these workbook.

    Unless there is another way.

  7. #7
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Like I feared, I don't have the admin rights on my computer... I'll try removing the calendars...

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Hi cdn_medic

    You could use a non ActiveX Calendar Control such as the one used in this link...no Admin Rights necessary and MSCAL.OCX not required.

    http://www.excelforum.com/excel-prog...for-dates.html


    or this

    http://www.excelforum.com/excel-prog...ml#post3560292

  9. #9
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    I tried that I still got an error message... would you mind trying it with the document I liked up top? I think I might be missing some compatibility stuff from the installation process.

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Hi cdn_medic

    Why don't you share what you've tried...I'll look at it. I am going to be tied up most of the afternoon so will not be able to spend significant time until later today.

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    Hi cdn_medic

    The Code in the attached has a non ActiveX Calendar Control embedded in the Workbook and has been tested in Excel 2007 and 2010.

    It appears to do as you require. Let me know of issues.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    02-11-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    It works perfect, and is exactly what I did... I ended up copying/pasting the data in a new macro-enabled workbook. That the only way I found to get rid of the missing library error.

    Thanks for your help, that calendar form is pretty handy!

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Compatibility issue with code writen in excel 2007 and used in 2010

    You're welcome...glad I could help. Thanks for the Rep.

+ 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] 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
  2. [SOLVED] Backwards compatibility issue between VB Excel 2010 -> 2003
    By IamSierraCharlie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2013, 08:54 PM
  3. VBA Compatibility between Excel 2007 and 2010
    By dwsteyl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2013, 02:17 PM
  4. Excel 2007 : Compatibility issues with Excel 2010
    By relaj in forum Excel General
    Replies: 6
    Last Post: 02-14-2013, 12:39 AM
  5. Replies: 3
    Last Post: 10-05-2012, 11:10 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