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 / February 2006

Tip: Looking for answers? Try searching our database.

Accessing VBA code from external program through Automation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jo Siffert - 15 Feb 2006 07:36 GMT
Hi,

is it possible to extract the VBA source stored in a DOT from an
external program using the Word Automation interface?
Second, is it possible to alter this source code from an external program?

Thanks in advance,
  Jo
Tony Jollans - 15 Feb 2006 10:03 GMT
Yes, and Yes - but in Word 2003 (and 2002?) the user must have explictly
allow access to the VB Project.

Subject to the user option, you can look at, and change, any or all of the
code via DocumentRef.VBProject  and its properties and methods.

--
Enjoy,
Tony

> Hi,
>
[quoted text clipped - 4 lines]
> Thanks in advance,
>    Jo
 
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.