Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Portland, Maine, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting reference via code (Outlook 2003)

    I am distributing a macro to some of my users by copying VBAproject.otm. The code needsd a reference to Microsoft Active Data Objects 2.7 Library. Is there a way to do that programatically?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Setting reference via code (Outlook 2003)

    You need another reference to be able to set references in code: to the Microsoft Visual Basic for Applications Extensibility 5.3 library <img src=/S/crazy.gif border=0 alt=crazy width=15 height=15>
    Isn't the reference stored in the .otm file?

  3. #3
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    Portland, Maine, USA
    Posts
    296
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting reference via code (Outlook 2003)

    I also thought it was stored in the otm file - and in fact it is. The person trying told me that it was not working. However, it turns out that the original otm file had Microsoft Active Data Objects 2.8 and the other machines had version 2.7. When I reset the reference to the 2.7 version, it worked!

Posting Permissions

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