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
Jezebel - 25 Jan 2006 23:55 GMT
Switch to VBA. Right-click in the project window and select 'Import'. Select
your text file.
> 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
[quoted text clipped - 6 lines]
>
> --Michael
Charles Kenyon - 26 Jan 2006 01:07 GMT
See http://word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> 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
[quoted text clipped - 6 lines]
>
> --Michael
Peter Jamieson - 26 Jan 2006 10:31 GMT
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
> 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
[quoted text clipped - 6 lines]
>
> --Michael