When MultiLine Txt Box Returns a square to the formated wordwrap cell

  • Thread starter Cory Not Available
  • Start date
C

Cory Not Available

OK heres my problem.

I have a MultiLine TxtBox on the Form, and when I enter in the box and
press return rather then keep typeing it send a Box to the cell after I
entered the info.

For example

Text box __________________________
| this is a test {RETURN}|
| |
| |
| |
__________________________

The Sheet then returns the following to the cell:
this is a test []

Any information would help
 
D

Dave Peterson

Maybe you could clean it up before you update the cell:

Option Explicit
Private Sub CommandButton1_Click()
Dim myStr As String
myStr = Me.TextBox1.Value
myStr = Application.Substitute(myStr, vbNewLine, vbLf)
ActiveSheet.Range("a1").Value = myStr
End Sub


OK heres my problem.

I have a MultiLine TxtBox on the Form, and when I enter in the box and
press return rather then keep typeing it send a Box to the cell after I
entered the info.

For example

Text box __________________________
| this is a test {RETURN}|
| |
| |
| |
__________________________

The Sheet then returns the following to the cell:
this is a test []

Any information would help
 

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