PDA

View Full Version : Reading text files and assigning values



kilkejo1
05-23-2020, 03:12 AM
I have a small but annoying problem reading a textfile and assigning the numeric value to a textbox in a userform.

When the userform displays the value it shows a special character (linefeed?) after it .....

Any ideas how I can avoid this please?

(tried to post a screnshot of the userform but when I do it produces "post denied"????)

Paul_Hossler
05-23-2020, 07:20 AM
Guessing





UserForm1.tbTextBox1.Text = Left(X, Len(X)-1)

kilkejo1
05-24-2020, 12:44 AM
Thanks Paul.