Freelance Project Requests Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net

Text input fields in Word with vba c #


This code example shows how to insert FormTextInput form fields in word.

The insertion takes place in the example at runtime, programmatically.



A new form field is created via Word.Range.FormFields.Add (..) added

FormField field = act_Image_Range.FormFields.Add(act_Image_Range, WdFieldType.wdFieldFormTextInput);


Example code in C #

Insert via Word.Range.FormFields.Add (new ..)

//< add textinput field >


FormField field = act_Image_Range.FormFields.Add(act_Image_Range, WdFieldType.wdFieldFormTextInput);


field.OwnStatus = true;

field.HelpText = "Bildtext";

field.TextInput.Default = "enter Image-Text";

//</ add textinput field >




Programming in vba, C #

Word ContentControl


Example application

Text input as FormFields type: wdFieldFormTextinput



C #, Visual Studio Vsto interop com

FormField, form fields, form input, ContentControls


Vba Code: Copy template area
Vba Code: Platzhalter finden und ersetzen
Insert a line break at the end of a line and then insert text or a table
Word: insert characters at the end of a line
Text input fields in Word with vba c #
Create input fields in Word. C# ContentControls
Protect Word programmatically
Word vba: find current sentence
Word vba: Change document property title dynamically with Textbox Control
Word Code: Edit photos and controls in vba


Contact for Jobs, Project Requests: