Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default macro to find date format in a cell and delete that entire row

Sub test()
'Macro finds and deletes all rows with
'a date in column A which
'equals a test date in cell B1
Dim DateFound As Range
Dim DFyes As Integer
Do
Set DateFound = Columns("A:A").Find(Range("B1").Value)
If Not DateFound Is Nothing Then
DFyes = 1
DateFound.EntireRow.Delete
Else
DFyes = 0
End If
Loop Until DFyes = 0
End Sub


vikram < wrote:

macro to find date format in a cell and delete that entire row

i have dates in a column and date keeps changing, i want that if a
macro find date in a column , it deletes that entire row

help me
thank u so much everyone for ue help


---
Message posted from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a cell with a particular date format? Tom Excel Discussion (Misc queries) 3 December 18th 09 06:08 AM
Specify a row based on data from a cell to delete entire row..... Fadedmartinikiss Excel Discussion (Misc queries) 0 March 11th 09 08:39 PM
Macro to copy values then delete row for entire sheet Pyrotoy New Users to Excel 18 December 9th 08 12:43 AM
Macro - delete entire row which contain a specific text Dileep Chandran Excel Worksheet Functions 1 December 6th 06 01:08 PM
Find character in entire workbook and format color CST[_2_] Excel Programming 2 February 27th 04 03:05 PM


All times are GMT +1. The time now is 07:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"