Consulting

Results 1 to 4 of 4

Thread: How to dynamically add an Office reference?

  1. #1

    How to dynamically add an Office reference?

    I've got an issue that apparently came out of nowhere..

    A bunch of our clients at a particular company have an Excel sheet we gave them that has some VBA code in it. Basically, they click a button on the Excel sheet, and the VBA code saves the Excel doc to a temp location, opens up a new Outlook compose window, and attaches the Excel doc to it. This uses the Outlook.Application object.

    The problem is, out of nowhere, this functionality broke for them. It used to work fine. It SEEMS that they downgraded their Office, and so it's not finding the Outlook 11.0 Reference Lib anymore...

    I heard that you can code VBA apps to look for either Office 10 or 11 references and add them dynamically. If anyone could tell me how this is done, I'd really appreciate it!

    Thanks..

  2. #2
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





  3. #3
    Thanks a million! I swear I searched first.. I tried searching for "outlook reference dynamically" and "outlook reference 11.0 10.0".. didn't turn up much. Guess I was searching for the wrong things.

  4. #4
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    You're welcome, and welcome to VBAX, but the way!

    Our KB search engine is in the process of being upgraded right now, and should eliminate some searching issues. Hopefully it will make things easier to find things in the future.

    Cheers!
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

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