lets say i have in cell A1
| Row | A |
|---|---|
| 1 | line1 line2 line3 |
How would i remove just the first line so its end up:
| Row | A |
|---|---|
| 1 | line2 line3 |
Sub line_count()
Set c = Worksheets("Sheet1")
Dim len_act As Integer
len_act = Len(c.Cells(4, 2)) - Len(Application.WorksheetFunction.Substitute(c.Cells(4, 2), Chr(10), vbNullString))
If len_act > 2 Then
c.Cells(4, 2) = remove first line
End If
End Sub