Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word - Form - Text Box

Status
Not open for further replies.

DummyForAccess

Technical User
Aug 7, 2002
38
0
0
US
I am working on a form in Word. I want to add a text box that users can fill in. If I add a text box from the Form toolbox, it creates a teeny one that can "grow". How can I create one that is like the very box I am typing in now, that is a specific size and shape? I had one on the form before I used the protect feature to enable check boxes... Help!
 

If you place a TextBox1 on the Form1, and CommandButton1 on the bottom of the Form, paste this code:
Code:
Private Sub CommandButton1_Click()

With TextBox1
    .Top = 0
    .Left = 0
    .Width = Me.Width
    .Height = CommandButton1.Top
    .MultiLine = True
    .Text = "This is my text" & vbNewLine & _
        "in the text box"
End With

End Sub

Is that what you are after?

Have fun.

---- Andy
 
sorry, I'm lost. I'm not doing any programming with it, I'm just trying to add the box to a document in Word that will be used as a form to fill out - but not linked to any database or anything like that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top