dotchieJack
Member
Hello,
How can i adjust this code
so that is leaves a blank row first
something like this
thanks in advance
How can i adjust this code
Code:
Private Sub CommandButton4_Click()
With ActiveSheet.Cells(Rows.Count, 3).End(xlUp)
.Offset(1).Resize(7) = Application.Transpose(Array(TextBox20, TextBox30, TextBox31, TextBox21, TextBox25, TextBox28, TextBox23))
.Offset(1).Resize(7).Font.Bold = True
.Offset(1, 5).Resize(7) = Application.Transpose(Array(1 * TextBox12, 1 * TextBox29, 1 * TextBox32, 1 * TextBox22, 1 * TextBox26, 1 * TextBox27, 1 * TextBox24))
.Offset(7, 5).Font.Underline = xlUnderlineStyleSingle
End With
End Sub
something like this
Code:
iRow = ws.Cells(Rows.Count, 3) _
.End(xlUp).Offset(1, 0).Row + 1