E
Eric
I want to create a form in a word document and was
wondering how I can access the controls from the VBE.
I've been searching all over the net for a solution. There
are a lot of documentation about accessing controls which
are created on a user form, but couldn't find any about
accessing controls on a document.
I want to cycle through all the controls on the document
and give it another value. On a Userform in Word and in
Access, I would do the following.
Dim Ctrl as Control
For Each Ctrl In SomeFormName.Controls
Ctrl.SomeProperty = SomeValue
Next
This however does not work when the controls are on a word
document.
I've tried using ThisDocument.Controls but does not
recognise this as a method or property.
Any help with this is appreciated.
wondering how I can access the controls from the VBE.
I've been searching all over the net for a solution. There
are a lot of documentation about accessing controls which
are created on a user form, but couldn't find any about
accessing controls on a document.
I want to cycle through all the controls on the document
and give it another value. On a Userform in Word and in
Access, I would do the following.
Dim Ctrl as Control
For Each Ctrl In SomeFormName.Controls
Ctrl.SomeProperty = SomeValue
Next
This however does not work when the controls are on a word
document.
I've tried using ThisDocument.Controls but does not
recognise this as a method or property.
Any help with this is appreciated.