I have a text box (txtMsg) on a user form. I have set the MultiLine property to True but I still can not use an "Enter Key". I tried forcing it with
Then I get a compile error. "Invalid use of property" (KeyCode)
The other problem is getting out of the textbox. I added a command button to send me to another form using
but nothing happens. All I wanted to do was set a variable = frmMessage.txtMsg.Text A challenge with no line feeds and no way out of the text box. <g>
Code:
Private Sub txtMsg_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 13 Then vbCrLf
End Sub
Then I get a compile error. "Invalid use of property" (KeyCode)
The other problem is getting out of the textbox. I added a command button to send me to another form using
Code:
frmInput.show