I am searching a way to put some information into an Excel Worksheet:
I want to put what's in a
ComboBox in Column A Row1
Multiline Textbox in Column A Row2 (if possible every line of the TextBox in a different line of the column)
and another specific "Text" in next available line after the infos of the TextBox
I already have a Code that populates the Cells in Sheet 1, and I want it to do this to Sheet2. Then, I Clear the fields, start new infos and do the same to the next available column.
What I want it to do:
Userform looks like:
What it already does:
'add infos to sheet1
Feuil1.Activate
Feuil1.Select
lastrow = Cells(Rows.Count, 1).End(xlUp).Row
Cells(lastrow, 1).Offset(1, 0).Select
emptyrow = WorksheetFunction.CountA(Range("A:A")) + 1
Cells(emptyrow, 1).Value = MonthView1.Value
Cells(emptyrow, 2).Value = MonthView1.Value
Cells(emptyrow, 3).Value = ServiceBox.Value
sn = Split(RecomBox.Text, vbLf)
Cells(emptyrow, 4).Resize(, UBound(sn) + 1) = sn
Columns("B:B").Select
Selection.NumberFormat = "dd/mm/yyyy;@"
Columns("A:A").Select
Selection.NumberFormat = "mmmm yyyy;@"
'add infos to sheet2
Feuil2.Activate
Feuil2.Select