Import .bas as module in outlook 2010 using VBA RRS feed

  • Question

  • Hello,

    I'm using Outlook 2010 and i'm trying to add a module using VBA.

    My reach is to "share" this module with all the user , by this way I can modify the module's code without changing it user by user.

    I was used to do it with Excel with this :

    ModuScan = "H:\Documentation\ScanMe.bas"
    RetVal = CreateObject("Excel.Application")
    Application.ActiveWorkbook.VBProject.VBComponents.Import (ModuScan)

    I'd like to do the same in my Outlook  , load dynamically my .bas when outlook is opened.

    Could you please , tell me how to do that ?

    I've seen the function 'import' does exist with Outlook but I didn't find the object to which applies it.

    Thanks !

    Thursday, October 10, 2013 1:15 PM