Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Installing macros programmatically from a text file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 25 Jan 2006 23:26 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.