ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   new line at sheet textbox (https://www.excelbanter.com/excel-programming/275179-re-new-line-sheet-textbox.html)

Tom Ogilvy

new line at sheet textbox
 
ekmektext = txt1.Text & chr(10) & txt2.Text & chr(10) _
& txt3.Text & chr(10) & txt4.Text & chr(10) & txt5.Text

--
Regards,
Tom Ogilvy


GUS wrote in message
...
I am using the following code in order to add text (from userform's
textboxes) to a textbox in a sheet.
How can i create a new line inside the textbox in order to put every
(userform.textbox.value) in a new line inside the sheet textbox?.


ekmektext = txt1.Text & chr(10) & txt2.Text & chr(10) _

& txt3.Text & chr(10) & txt4.Text & chr(10) & txt5.Text



Worksheets("xxxxxxxxx").OLEObjects("textbox1").Obj ect.Value = ekmektext






All times are GMT +1. The time now is 10:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com