longytravel
Board Regular
- Joined
- Aug 2, 2011
- Messages
- 68
Guys,
i have the following code
this put a allows me to produce a bullet point when i start typing in the text box
I cant however get it to prodcue more than 'one bullet' i.e more than one line of text
Any way i can get more than one bullet into a text box?
i guess i would expect another bullet to appear when i hit return
Thanks as ever!
i have the following code
this put a allows me to produce a bullet point when i start typing in the text box
I cant however get it to prodcue more than 'one bullet' i.e more than one line of text
Any way i can get more than one bullet into a text box?
i guess i would expect another bullet to appear when i hit return
Thanks as ever!
Code:
Private Sub TextBox1_Change()
Dim MyArray() As String
MyArray = Split(TextBox1.Text, vbCrLf)
For i = LBound(MyArray) To UBound(MyArray)
If Left(Trim(MyArray(i)), 1) <> "•" Then _
MyArray(i) = "• " & MyArray(i)
If i = 0 Then
TextBox1.Text = MyArray(i)
Else
TextBox1.Text = TextBox1.Text & vbCrLf & MyArray(i)
End If
Next i
End Sub