see attached workbook.
The easiest approach would be if you fill all of the qty. cells with the same color.
Enter some values in qty. and click the "Reset" button.
All cells with the same color will be reset.
Simple macro [see below], checks for color of the cells and resets all cells with that color.
This way you don't have to add anything to the macro.
modytrane.
Sub resetcells()
Application.ScreenUpdating = False
For Each c In ActiveSheet.Range("A1:AZ1000").Cells
If c.Interior.Color = 16777164 Then c.ClearContents
Next
Application.ScreenUpdating = True
End Sub
Bookmarks