PC Review


Reply
Thread Tools Rate Thread

Delete if find a data format

 
 
=?Utf-8?B?SnVuaW9yNzI4?=
Guest
Posts: n/a
 
      10th May 2007
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 With Quote
 
 
 
 
Mike Fogleman
Guest
Posts: n/a
 
      10th May 2007
The first rule when deleting rows in a list is to delete from the bottom up.

Mike F
"Junior728" <(E-Mail Removed)> wrote in message
news:8DB41429-C477-4519-9FD6-(E-Mail Removed)...
> 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 With Quote
 
=?Utf-8?B?SnVuaW9yNzI4?=
Guest
Posts: n/a
 
      11th May 2007
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" <(E-Mail Removed)> wrote in message
> news:8DB41429-C477-4519-9FD6-(E-Mail Removed)...
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Find & Format Data Using VBA meh2030@gmail.com Microsoft Excel Programming 0 20th Mar 2009 10:48 PM
RE: Find & Format Data Using VBA Jacob Skaria Microsoft Excel Programming 0 20th Mar 2009 06:04 PM
how to find the data after we delete bayu Microsoft Excel Misc 1 11th Oct 2008 05:54 PM
macro to find date format in a cell and delete that entire row vikram Microsoft Excel Programming 8 30th Apr 2004 06:00 PM
macro to find date format in a cell and delete that entire row vikram Microsoft Excel Misc 8 30th Apr 2004 05:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 PM.