Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Delete if find a data format

Hi ,

I wish to write a macro that can find in column "O", a date in this format
(5/07/2007), if found then highlight the row in red color, else will have to
delete the entire row. However, i just cannot make the macro run? How can
write in such as way that the marco looks from Row 1 to end of last used rows
and try to search for the date format, and to delete that row ? i have tried
selection.Entirerow.Delete or entirerow.delete...but still it does not work.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Delete if find a data format

The first rule when deleting rows in a list is to delete from the bottom up.

Mike F
"Junior728" wrote in message
...
Hi ,

I wish to write a macro that can find in column "O", a date in this format
(5/07/2007), if found then highlight the row in red color, else will have
to
delete the entire row. However, i just cannot make the macro run? How can
write in such as way that the marco looks from Row 1 to end of last used
rows
and try to search for the date format, and to delete that row ? i have
tried
selection.Entirerow.Delete or entirerow.delete...but still it does not
work.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Delete if find a data format

Thanks, mike. after this time, i know how to. just need to include something
like this and it works for me...Range.Delete Shift:=xlUp

thanks once again. It helps to relief myself from alot of frustration.

"Mike Fogleman" wrote:

The first rule when deleting rows in a list is to delete from the bottom up.

Mike F
"Junior728" wrote in message
...
Hi ,

I wish to write a macro that can find in column "O", a date in this format
(5/07/2007), if found then highlight the row in red color, else will have
to
delete the entire row. However, i just cannot make the macro run? How can
write in such as way that the marco looks from Row 1 to end of last used
rows
and try to search for the date format, and to delete that row ? i have
tried
selection.Entirerow.Delete or entirerow.delete...but still it does not
work.




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
Excel could not find the data ....check format Sarah H Pearson Excel Discussion (Misc queries) 0 October 27th 09 05:27 PM
how to find the data after we delete bayu Excel Discussion (Misc queries) 1 October 11th 08 05:54 PM
Find last row of data and delete empty rows Pat Excel Programming 3 February 17th 05 12:34 AM
Find and Delete data in a column rahul_chatterjee[_2_] Excel Programming 4 October 25th 04 11:08 PM
macro to find date format in a cell and delete that entire row vikram Excel Programming 8 April 30th 04 06:00 PM


All times are GMT +1. The time now is 04:03 PM.

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

About Us

"It's about Microsoft Excel"