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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Word Application.Clean?

Status
Not open for further replies.

dprayner

Programmer
Oct 14, 2002
140
US
Hi good people.

I when I populate a ActiveX text box with a 0 (Zero) on a Word Doc, I get a little black square box (new line character?) in the Text and Value Properties.

Is there any Application.Clean option in Word, or similar feature.

I always get .Text and .Value mixed up. Which one shoul I be using?

DAVE
 
I don't know of any .Clean but if it's always the last character then you could use
Code:
TextBox.Text = Left(TextBox.Text,len(TextBox.Text)-1)

.Text is what the user see's (after formatting and such) and .Value is the unformatted value stored. You should always set .Value but because this seems to be an error with formating I'm using .Text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top