Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Ryan Anderson   on Sep 13 In MS Office Category.

  
Question Answered By: Dion Jones   on Sep 13

that specific date or any date... if its any date then you can loop through
each row and check to see if its a valid date...

sub deleteifnotdate()
dim irow as integer
dim x as integer

irow = range("A65535").end(xlup).row

for x = irow to 1
if not isdate(range("K" & x).value) then
row(x).delete
end if
x = x-1
next x

end sub

should do the trick..

Note: air code  not tested but should work

Share: 

 
 
Didn't find what you were looking for? Find more on Need Excel VBA Help with deleting rows Or get search suggestion and latest updates.


Tagged: