Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
MsgBox Split(YourTextBox.Value, vbCrLf)(UBound(Split(YourTextBox.Value, vbCrLf)))
With Me.TextBox1
.SetFocus
.SelStart = 0
If .LineCount > 1 Then .CurLine = .LineCount - 1
.SelLength = 65535
End With
I can't get LineCount or CurLine to work without the Textbox having focus on a userformcombo said:no need for SetFocus on the userform).
You are right, I had it working with one control and commandbuttonAndy said:I can't get LineCount or CurLine to work without the Textbox having focus on a userform