View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
burl_h burl_h is offline
external usenet poster
 
Posts: 35
Default if cell is not date format delete row

I'm having a little trouble with this one, I'm trying to delete all
rows where the cells within the selected range are not formatted as
date.

Sub delete_date()
Dim datarng As Range
lastrow = Cells(Rows.Count, "B").End(xlUp).row
Set datarng = Range ("b2:b" & lastrow)