开发者

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)
    
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜