Why So complicated?
Type the quantity in column B Entering Return could copy that line to the shopping list, but is pointless.
Once you have entered your quantities click on a button to create the shopping list..... Much Better
This Macro would do what you need, Just assign it to a button.
Sub Macro1()
Sheets("Shopping List").Cells.ClearContents
Columns("C:C").SpecialCells(xlCellTypeConstants, 1).Select
Selection.EntireRow.Copy Destination:=Sheets("Shopping List").Range("A1")
End Sub
Better Still Assign it to a worksheet activation Macro
Private Sub Worksheet_Activate()
Sheets("All Items").Select
Macro1
End Sub
This Code is modified to clear the shopping list automatically
Sub Macro1()
Sheets("Shopping List").Cells.ClearContents
Columns("C:C").SpecialCells(xlCellTypeConstants, 1).Select
Selection.EntireRow.Copy Destination:=Sheets("Shopping List").Range("A1")
LR = Cells(Rows.Count, 3).End(xlUp).Row
Range("C2:C" & LR).Clear
Range("A1").Select
End Sub
Bookmarks