(Msg. 1) Posted: Sat May 17, 2008 10:03 am
Post subject: Forms with text boxes Archived from groups: microsoft>public>word>vba>userforms (more info?)
I would like to make a form in Word 2003 (I could use Publisher or Excel)
where I can have text boxes that I could limit the characters allowed in that
text box. Also if possible, in some text boxes I would like to keep a running
total of how many characters are left to be used in that text box.
Is this possible???
I'm not a programer..only a novice user...I would need detailed help on how
to do this.
(Msg. 2) Posted: Sat May 17, 2008 7:24 pm
Post subject: Re: Forms with text boxes [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Hi toomsk,
something along these lines:
Private Sub TextBox1_Change()
Dim Total As Long
Total = 50
If Len(TextBox1.Text) > 40 Then
MsgBox "characters left: " & Total - Len(TextBox1.Text)
TextBox1.Text = Left(TextBox1.Text, 50)
End If
End Sub
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum