How to create a vbs file that can import a particular macro (bas file) into outlook
Sathish Kumar Jayaraj (MS/ENP51)
1
Reputation point
Hello All,
Can you please Help.
I would like to have a .vbs file which when executed automatically imports a .bas file (stored in my desktop) and updates the outlook modules with the latest macros.
I searched online, there are codes that is working in excel, apparently not in Outlook.
"Set oApp = CreateObject("Outlook.Application")
oApp.VBE.ActiveVBProject.VBComponents.import "C:\Users\JAS3BMH\Desktop\Module1.bas""
the above code doesn't work
Many thanks in advance,
Sign in to answer