Hi all,
I have a Word 2007 template with several content controls(plaintext), and throught word automation I can transfer text to the first one, but not the second one? I have reviewed each content control's property they are both editable - not write protected, my code:
Dim objcc as Microsoft.Office.Interop.Word.ContentControl
for each objcc in oDoc.ContentControls
If objcc.tag = "Title" then
objcc.range.text = textbox1.text
end if
If objcc.tag = "Story" then
objcc.range.text = textbox2.text
end if
exit for
next
Thanks for looking...
I have a Word 2007 template with several content controls(plaintext), and throught word automation I can transfer text to the first one, but not the second one? I have reviewed each content control's property they are both editable - not write protected, my code:
Dim objcc as Microsoft.Office.Interop.Word.ContentControl
for each objcc in oDoc.ContentControls
If objcc.tag = "Title" then
objcc.range.text = textbox1.text
end if
If objcc.tag = "Story" then
objcc.range.text = textbox2.text
end if
exit for
next
Thanks for looking...