Hi,
I have created a Userform Text box to input customer details and contact numbers.
The plan was for the textbox to be multiline, as you would enter an address and telephone number.
This textbox would then be inserted into a worksheet in the same layout as typed.
I can get the textbox to accept the type in multilines as I wish but, when I insert into the worksheet cells it removes the line breaks and the text end up in one string.
The code I have to enter the textbox into the worksheet is.
ThisWorkbook.Sheets("Customer_Invoice").Cells(8, 2).Value = UserForm1.TextBox1.Value
UserForm1.Hide
The cell I am plcing the text into are a 7x 5 matrix of merged cells.
Any ideas what I have missed in the textbox properties or the coding/format of the worksheet.
rgds
Alistair
I have created a Userform Text box to input customer details and contact numbers.
The plan was for the textbox to be multiline, as you would enter an address and telephone number.
This textbox would then be inserted into a worksheet in the same layout as typed.
I can get the textbox to accept the type in multilines as I wish but, when I insert into the worksheet cells it removes the line breaks and the text end up in one string.
The code I have to enter the textbox into the worksheet is.
ThisWorkbook.Sheets("Customer_Invoice").Cells(8, 2).Value = UserForm1.TextBox1.Value
UserForm1.Hide
The cell I am plcing the text into are a 7x 5 matrix of merged cells.
Any ideas what I have missed in the textbox properties or the coding/format of the worksheet.
rgds
Alistair