Try using this code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Qty As Long
Dim CurrRow As Long
Dim CurrCol As Long
CurrRow = Target.Row
CurrCol = Target.Column
If CurrCol = 8 And CurrRow >= 14 Then
Qty = Target.Value
If Cells(CurrRow, 2) = "" Or Cells(CurrRow, 4) = "" Or Cells(CurrRow, 6) = "" Then
MsgBox "Please fill in all the fields"
Else
Range(Cells(CurrRow, 2), Cells(CurrRow, 7)).Resize(Qty).FillDown
End If
End If
End Sub
When you enter a quantity in the quantity column, it will automatically fill down the number in the quantity. Try it out with differing numbers, and report back if you have any questions.
EDIT: I had a code error that I corrected.
Bookmarks