View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
OssieMac OssieMac is offline
external usenet poster
 
Posts: 2,510
Default Problem of selection.delete

Selection.Delete should also include the direction to shift cells otherwise
Excel decides. I wonder if this is causing a problem. Options a-

Selection.Delete Shift:=xlUp

Selection.Delete Shift:=xlToLeft

Selection.EntireRow.Delete

Selection.EntireColumn.Delete



Based on your other comments re clear, I suppose you really do want to
delete which removes the rows or columns within the selection and places the
columns to the right or rows from below in their place. Selection.Clear just
removes the data out of the cells.

Regards,

OssieMac





"Radhakrishna k.v.n.r" wrote:

Hi all,
we are currently using MSExcel 2003 version. We are facing a problem of
deleting perticular data by selecting the range. We are first selecting the
specified range and we are doing the selection.delete operation using macro.
But it is selecting the range but it is not deleting. If i gave
selection.clearformats and selection.clearcontents it is deleting fine. The
selection.Delete is working fine for remaining workbooks. can any one give
your opinion about this.