Results 1 to 5 of 5

Code to install Word Object Libray

This is a discussion on Code to install Word Object Libray within the Excel Questions forums, part of the Question Forums category; I have a file that is used across machines that use Excel 2010 & 2013. I need the relevant Word ...

  1. #1
    Board Regular
    Join Date
    Jan 2006
    Location
    Leeds, UK
    Posts
    1,205

    Default Code to install Word Object Libray

    I have a file that is used across machines that use Excel 2010 & 2013.

    I need the relevant Word Object Library to be available to all users but user of 2010 run into an error as the 15.0 library is missing.

    Therefore, I need to run some code in the Workbook_Open code to check which version and then install the relevant library. Ideally I want to future proof and check if Excel 2016 is being used.


    Thanks

  2. #2
    MrExcel MVP
    Moderator
    RoryA's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    29,381

    Default Re: Code to install Word Object Libray

    It will be much easier to late bind your code so that you don't need the reference at all.

  3. #3
    Board Regular
    Join Date
    Jan 2006
    Location
    Leeds, UK
    Posts
    1,205

    Default Re: Code to install Word Object Libray

    Thanks RoryA but could you explain how to do this?

  4. #4
    MrExcel MVP
    Moderator
    RoryA's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    29,381

    Default Re: Code to install Word Object Libray

    Last edited by RoryA; Feb 10th, 2016 at 06:52 AM.

  5. #5
    Board Regular
    Join Date
    Jan 2006
    Location
    Leeds, UK
    Posts
    1,205

    Default Re: Code to install Word Object Libray

    Thanks RoryA, I think that has done the job!

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DMCA.com