Accessing VBA code from external program through Automation

J

Jo Siffert

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
 
T

Tony Jollans

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.
 

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