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.
 
Top