I have a control field where I dynamically add certain text. That works well so far. The problem is that in one text I have an input field where the user can type in text.
I need to hardcode the form text input field into the VBA code. How is this achieved? Or can someone point me in the right direction?
In the following code snippet I need to replace the [InputField] by a VBA input field.
ActiveDocument.SelectContentControlsByTitle("Bottom").Item(1).Range.Text = _
"Some Text" & vbNewLine & _
"Some Text" & vbNewLine & _
"Some Text" & vbNewLine & _
"Text [InputField] Text"
I’m not sure what you mean by VBA input field. I think you mean “Form Input Field”?
If so that is probably a solution to your problem: