word 2007: adding form fields
does anyone know how to add a TEXTBOX onto a word 2007 document. i need to gather user input and after the form is filled out, the data w开发者_如何学Cill be added into an access database
thank you!
Word supports different kind of text input fields:
"legacy" input fields that are implemented using Word fields:
Selection.FormFields.Add Range:=Selection.Range, Type:= wdFieldFormTextInput
ActiveX controls:
Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
Content controls (Word 2007 or later):
Selection.Range.ContentControls.Add (wdContentControlText)
精彩评论