Insert/Add module remotely?

E

emailceloftis

Using VS2005, VB.NET,
Is it possible to insert/add an axisting VBa module (.bas) to an
existing PPT file? I know how to execute module code using automation,
I just don't see a way to insert or add a new module - anyone know if
this is possible?
 
E

emailceloftis

Using VS2005, VB.NET,
Is it possible to insert/add an axisting VBa module (.bas) to an
existing PPT file? I know how to execute module code using automation,
I just don't see a way to insert or add a new module - anyone know if
this is possible?

Found this right after posting:

oPres.VBProject.VBComponents.Add
(Microsoft.Vbe.Interop.vbext_ComponentType.vbext_ct_StdModule).CodeModule.AddFromFile
("SomeFile.bas")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top