View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Novice[_10_] Novice[_10_] is offline
external usenet poster
 
Posts: 5
Default Deleting blank cells in a selection

Hi,
I am trying to create a macro that will delete blank cells
in a selection. The only code I have found
uses "Selection.SpecialCells
(xlCellTypeBlanks).EntireRow.Delete"

However, I want to delete just the blank cells in a
particulary row if both are blank, not the entire row in
the worksheet.
For example selection is A2:B9 and cells A4 and B4 are
both zero or blank. I need cells A4 and B4 deleted and the
remaining cell selection moved up a row.

Please help! Thanks..