Textbox - annoying black line

E

elle0612

Hi

I have created a letter template with form. The form has several text boxes
which the user populates with text, and on the clicking of a button the text
is transferred to the letter template.

On testing, the very second text is typed into a textbox, a black line
appears underneath the text in the textbox. It is not the usual form of Word
underlining and is rather annoying.

Does anybody know how I can switch this line off? Or even what it is?
Somebody else must have experienced this annoying problem I should think.

Any advice gratefully received.

Thanks
 
D

Doug Robbins - Word MVP

What type of form is it that you have created?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
E

elle0612

Hi

This is the code to show the form.

Private Sub Document_New()
myUserform.Show vbModal
End Sub
 
R

Russ

It looks like you using a userform dialog box and not a formfield in a
document.

Therefore:
If it appears under each character as it is typed, then you have the font
set to underlined in the text box properties dialog.
Does it appear in every textbox?
Does it immediately appear all the way across the textbox, even when the
textbox is empty and before you enter any text?
 
E

elle0612

Hello

I have tested it again and made careful note.

The line does not appear until I type in the second character, and than a
black line appears the whole length of the textbox (just on the inside along
the bottom of the textbox). When I click in a second textbox the line
disappears from the first but appears again from the 2nd character onwards in
the second text box, and this pattern carries on throughout all the textboxes.

I have checked, they are text boxes within a UserForm.

Any ideas? I have had a quick look at the properties panel to see if
anything is true when it should be false - but I don't know enough to
understand what each property does yet.

S
 
R

Russ

Another possibility is layered objects and that you have another object
border or line underneath or behind the textboxes and when they are selected
by clicking into the textbox the line becomes darker. Are your textboxes
isolated on the form with no background or underlying objects?
You can give a textbox a 'sunken' or 'raised' or no border look, but the
look normally doesn't change by activating the textbox for input.
 
E

elle0612

Hi

No they are definitely text boxes. I don't quite understand why it happens
- the text box with focus gets a black line underneath the text after text is
inputted.

Anyway, thanks for your suggestions, but I've made the document live now,
with the strange line. Nothing else I can do abot it.

Thanks again
 
C

Cor van der Bliek

Had the same problem. Found out it had to do with the height of the textbox.
Height 15 showed the line, 17pt did't. Quitre simple.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top