How can I run VBA code for outlook in powershell?

%3CLINGO-SUB%20id%3D%22lingo-sub-2293111%22%20slang%3D%22en-US%22%3EHow%20can%20I%20run%20VBA%20code%20for%20outlook%20in%20powershell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293111%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20some%20example%20code%20that%20I%20am%20using%20to%20test%20setting%20up%20outlook%20profiles%20using%20the%20profman%20library%20from%20Dmitry.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.dimastr.com%2Fredemption%2Fprofman_examples.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.dimastr.com%2Fredemption%2Fprofman_examples.htm%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20nothing%20on%20VBA%20but%20I%20wanted%20to%20impress%20my%20boss%20by%20trying%20to%20make%20an%20automated%20way%20of%20creating%20email%20profiles.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20of%20these%20test%20examples%20work%20but%20I%20can%20only%20run%20it%20in%20outlook%20through%20vba.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20I%20can%20start%20outlook%20and%20run%20the%20vba%20script%20all%20from%20powershell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20able%20to%20do%20this%20for%20excel%20and%20the%20macro%20I%20have%20for%20that%20but%20I%20haven't%20found%20a%20way%20to%20do%20this%20for%20outlook%20yet.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2293111%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOutlook%20for%20Windows%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVba%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

I have some example code that I am using to test setting up outlook profiles using the profman library from Dmitry. https://www.dimastr.com/redemption/profman_examples.htm 

 

I know nothing on VBA but I wanted to impress my boss by trying to make an automated way of creating email profiles. 

 

Some of these test examples work but I can only run it in outlook through vba. 

 

Is there a way I can start outlook and run the vba script all from powershell?

 

I am able to do this for excel and the macro I have for that but I haven't found a way to do this for outlook yet. 

 

Any suggestions?

 

Thank you for your time, 

0 Replies