+ Reply to Thread
Results 1 to 5 of 5

Auto Load Reference Library

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Andromeda, Hawaii
    MS-Off Ver
    Excel 97/2003 and 5.0/97
    Posts
    49

    Auto Load Reference Library

    Hi,

    I write VBA code that sometimes ends up on other's computers. When they run the code they sometimes get errors since they do not have the needed library references included (.eg. VBE..Tool Bar...Tools..references... Calendar, ADO library , etc)

    Does anyone know how to have the VBA code check to see if all required references have been included and if not ... then include them ?

    And if you do, then a little VBA code demo would be appreciatted.

    Thanks.

  2. #2
    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: Auto Load Reference Library

    Hi jdlc

    See these two links...
    http://xlvba.fr.yuku.com/topic/131#.U49pokrD_s0
    http://xlvba.fr.yuku.com/topic/200#.U49qM0rD_s0
    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.

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Andromeda, Hawaii
    MS-Off Ver
    Excel 97/2003 and 5.0/97
    Posts
    49

    Re: Auto Load Reference Library

    woooah! this great! thanks john.

  4. #4
    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: Auto Load Reference Library

    Hi jdlc

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

    You mention Calendar as one of a possible Reference Requirement. Perhaps not all of your Users will have Calendar Control loaded on their machine and this will not resolve the issue for them.

    I suggest you Google on Non ActiveX Calendar Control...think about using that...such will avoid the issue of a required Reference for Calendar Control.

  5. #5
    Registered User
    Join Date
    08-31-2012
    Location
    Andromeda, Hawaii
    MS-Off Ver
    Excel 97/2003 and 5.0/97
    Posts
    49

    Re: Auto Load Reference Library

    Thanks John for the input.

+ 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. Replies: 0
    Last Post: 11-01-2013, 07:39 AM
  2. VBA References - Microsoft Outlook 14.0 Object Library - load with macro
    By bltn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2013, 11:28 AM
  3. Replies: 4
    Last Post: 04-03-2012, 10:28 AM
  4. Need additional code to load object library
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2011, 11:03 AM
  5. Replies: 0
    Last Post: 05-29-2006, 07:55 PM

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