> Can anyone please help me with this? I am trying to insert a VB macro
> (2 line code) in MS word documnet (programatically!!).
[quoted text clipped - 15 lines]
>
> Any help would be appriciated! Thanks
Hi, I am a pure amateur at this (programming is not my day job), so I
am not sure if this helps, but I am currently looking at the VBProject
object.
Accessible from NormalTemplate.VBProject, or ActiveDocument.VBProject.
This seems to offer access to code modules.
I am currently looking at something similar, where I have an external
script that is automating word and programmatically setting up a
toolbar and custom VB procedures. Not got it working yet.
Regards
Julian Turner