G
Guest
I need help with code to delete all rows for which column P is not empty.
Thanks in advance.. Kelli
Thanks in advance.. Kelli
Thanks Norman! I tried it, but it deletes ALL the rows, even if P is
null.
or possibly, they contain a space. I have a coworker who likes to delete
data by just using the spacebar
SH.Range(FirstCell, LastCell).Copy Destination:=destRng
Thanks! Is a destination required or did you just throw that in for
convenience? I will actually be pasting values only to somewhere else
entirely. Will it mess it up to remove the destRng references? -kelli
Set destRng = WB.Sheets("Sheet2").Range("A1")
Norman Jones said:Hi Kelli,
Change:
to
SH.Range(FirstCell, LastCell).EntireRow.Copy _
Destination:=destRng
Norman Jones said:Hi Kelli,
For addition clarification, you should change:
Set destRng = WB.Sheets("Sheet2").Range("A1")
to the "somewhere else" range.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.