I have the following snippet of code that is giving me trouble. Essentially, I'm filtering for the word "Keep" earlier in the code. That works. The below snippet identifies sDLR and mNLR + 1 correctly. However, if there is only 1 record with "Keep" and that record is in row 2, the code is trying to copy all of rows 1 & 2. In trying to figure out the issue, I found that if I move the record with "Keep" to row 5, the code runs as expected.
Thoughts?
VBA Code:
With sD.Range("B2:B" & sDLR).SpecialCells(xlCellTypeVisible).Copy
mN.Range("H" & mNLR + 1).PasteSpecial (xlPasteValues)
End With
Thoughts?