PC Review


Reply
Thread Tools Rate Thread

Date Removal

 
 
=?Utf-8?B?R3J1bnQ=?=
Guest
Posts: n/a
 
      27th Jul 2007
Hello,
I have a report that contains dates in column B, these dates can be
repeated many times and span everyday of the year. I wish to delete all rows
that contain a Saturday date in column B.
Is there a way to do this in vba without having to use the exact Saturday
Date in the code. I saw a Function called Weekday, which used the value 7 to
represent Saturdays. My vba skills are weak and I am unable to apply this
function properly.
Any help?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      27th Jul 2007
I'd probably add a helper column and enter = WEEKDAY(). Then I'd use
autofilter to find the WEEKDAY that matches Saturday. From there, I'd delete
the row.

HTH,
Barb Reinhardt

"Grunt" wrote:

> Hello,
> I have a report that contains dates in column B, these dates can be
> repeated many times and span everyday of the year. I wish to delete all rows
> that contain a Saturday date in column B.
> Is there a way to do this in vba without having to use the exact Saturday
> Date in the code. I saw a Function called Weekday, which used the value 7 to
> represent Saturdays. My vba skills are weak and I am unable to apply this
> function properly.
> Any help?

 
Reply With Quote
 
=?Utf-8?B?R3J1bnQ=?=
Guest
Posts: n/a
 
      30th Jul 2007
Thank You for the reply Barb,
I was trying to avoid the helper column if I could, but I took your advice
and applied the weekday function in this manner and it does get the job done.

Thanks again.

"Barb Reinhardt" wrote:

> I'd probably add a helper column and enter = WEEKDAY(). Then I'd use
> autofilter to find the WEEKDAY that matches Saturday. From there, I'd delete
> the row.
>
> HTH,
> Barb Reinhardt
>
> "Grunt" wrote:
>
> > Hello,
> > I have a report that contains dates in column B, these dates can be
> > repeated many times and span everyday of the year. I wish to delete all rows
> > that contain a Saturday date in column B.
> > Is there a way to do this in vba without having to use the exact Saturday
> > Date in the code. I saw a Function called Weekday, which used the value 7 to
> > represent Saturdays. My vba skills are weak and I am unable to apply this
> > function properly.
> > Any help?

 
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
Automatic date removal kenppy Microsoft Word New Users 10 3rd Mar 2010 10:44 PM
Removal Date Andri Microsoft Excel Worksheet Functions 6 8th Feb 2010 03:48 PM
Is date removal possible ? Al Windows XP Photos 3 8th Feb 2010 04:05 AM
Date stamp removal Turkeylips99 Windows XP Photos 12 20th Jan 2010 07:12 PM
Date stamp removal Elizabeth Kennedy Microsoft Outlook Discussion 2 1st Aug 2008 08:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 PM.