if the cells are already selected you can try either of the following:
Selection.Delete Shift:=xlUp
or
Selection.EntireRow.Delete Shift:=xlUp
-
I need to be able to delete rows (via VBA) that a user selects on a
worksheet. The rows can be non-contiguous. I have seen several
examples to
delete non-contiguous rows based on a cell value, but not for
non-contiguous
selected rows. Any suggestions???
Thanks,
Barb Ryan-
--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile:
http://www.excelforum.com/member.php...o&userid=33371
View this thread:
http://www.excelforum.com/showthread...hreadid=540379