Installing macros programmatically from a text file

M

Mike

Hi! I need to install a bunch of Word macros that I get from a text file.
Is there a way to read the file and install (and I guess compile) all these
macros.

I googled but no results.

Many Thanks in Advance,

--Michael
 
J

Jezebel

Switch to VBA. Right-click in the project window and select 'Import'. Select
your text file.
 
C

Charles Kenyon

P

Peter Jamieson

Not my area, but have you looked at the Help material for the Visual Basic
Add-In Model?

e.g. you can import a .bas file using

Application.VBE.ActiveVBProject.VBComponents.Import "c:\mybas\mybas.bas"

Peter Jamieson
 

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