All,
I am still working with this code:
Private Sub btnEditLabels_Click()
Dim ce As Range, NR As Long
For Each ce In Range("A8:A" & Cells(Rows.Count, "A").End(xlUp).Row)
If Not IsEmpty(ce) Then
With Sheets("Labels")
NR = .Cells(.Rows.Count, "A").End(xlUp).Offset(1).Row
If NR >= 12 Then
MsgBox "You already have 10 labels prepared on the Label sheet."
Else
.Unprotect "SECRET"
.Cells(NR, "A").Resize(1, 17).Value = Range(ce, ce.Offset(0, 16)).Value
ce.ClearContents
.Select
.Protect "SECRET"
End If
End With
End If
Next ce
End Sub
How it should work:
a) Copy a row.
b) If it had an H in the H column, make a copy of the row just copied only with H turned into an A and the Status (column M value) turned into "ITEM ON HOLD".
c) Keep copying rows, adding an A row for any H's.
d) Stop copying if the row=12 (that will be ten labels for the Avery sheet).
I don't know how to handle if the tenth label to be copied over has an H. The program would add an A row (H's always get an A), but then that would make 11 labels.
I am wrapped around this, bigtime. Anyone have any idea how to make this work?

Respectfully,
Lost
Bookmarks