chloedee1980
New Member
- Joined
- Jul 3, 2019
- Messages
- 1
I have code set up to select rows and can then fill down, but I want column C to fill series and the other columns to copy down.
The Range will always be different and so will the number of rows selected.
Is there a way of doing this?
The Range will always be different and so will the number of rows selected.
Is there a way of doing this?
Code:
Private Sub CommandButton1_Click()
Dim lRows As Long
lRows = TextBox1.Value
ActiveCell.Offset(1).Resize(lRows, 1).EntireRow.Insert
ActiveCell.EntireRow.Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(-1, 0)).EntireRow.Select
Selection.FillDown
Unload Me
End Sub