Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
hi,
I have a testbox1 in excel where after typing data in the text box i want to be able if required to press enter and start a new line in the textbox1, i am using the code below but i get an error please can you help me? thank you in advance.
I have a testbox1 in excel where after typing data in the text box i want to be able if required to press enter and start a new line in the textbox1, i am using the code below but i get an error please can you help me? thank you in advance.
Code:
Private Sub TextBox1_Change()
If KeyCode = vbKeyReturn Then
Me.NewLine
End If
End Sub