Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vba userforms carriage return behavior

In a textbox of a userform in VBA, I would like to enable the feature where the user can add a new line in the textbox by pressing the "Enter" key on the keyboard. However, I had trouble finding a UI option in the UI editor to achieve this. Is this even allowed in VBA userforms? Thanks in advance for the advices and answers.

like image 607
stanigator Avatar asked Jul 25 '09 23:07

stanigator


1 Answers

Set textbox's MultiLine property to True and EnterKeyBehavior to True.

like image 139
shahkalpesh Avatar answered Oct 25 '22 15:10

shahkalpesh