Hi
Thanks for your answer. I'll try it.
About my second question:
I checked the sample, the textformfield an so on are not a problem.
But Word 2010 supports the new contentcontrols like RichText, PlainText, Picture , Combobox, DropDown-List an so on.
It's possible to access those controls - how? Are there also DocumentObjectTypes like DocumentObjectType.TextFormField for the TextFormField-Object?
Following Code shows the VBA-Code to Access a PlainText-ContentControl having the Tag "SampleTag".
- Code: Select all
Sub ControlTest()
Dim CC As ContentControl
Set CC = ActiveDocument.SelectContentControlsByTag("SampleTag")
CC.Range.Text = "Hello World"
End Sub
I hope you understand what I mean.
Kine Regards
Login to view the files attached to this post.