PC Review


Reply
 
 
=?Utf-8?B?QWFyb24=?=
Guest
Posts: n/a
 
      16th Nov 2006
I am looking for code that does the following
Looks at active cell
Checks to see if the date value is a Friday date and if it is within 4 days
of todays date. If so Varible x = "OK"

Thanks,
Aaron
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      16th Nov 2006
Sub iffriday()
c = Weekday(ActiveCell)
If c = 6 And c >= 2 And c <= 10 Then MsgBox "ok"
End Sub


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Aaron" <(E-Mail Removed)> wrote in message
newsE66160C-A6EA-4030-BD9B-(E-Mail Removed)...
>I am looking for code that does the following
> Looks at active cell
> Checks to see if the date value is a Friday date and if it is within 4
> days
> of todays date. If so Varible x = "OK"
>
> Thanks,
> Aaron



 
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
if date field not null or >0 check check box JK Microsoft Access VBA Modules 4 28th Jan 2009 03:44 PM
Calculate a date (from start date) when check Box is activated Oliver Microsoft Access Forms 2 18th May 2008 01:42 PM
Date question, check if date is before today =?Utf-8?B?aVRhbmFz?= Microsoft Access 6 25th Mar 2006 03:26 AM
Change text to date and check against date in cell =?Utf-8?B?Ulc=?= Microsoft Excel Programming 3 2nd Feb 2006 03:29 PM
ERROR check if a date set entered violates a previous date set buzz Microsoft Excel Misc 1 21st Jun 2004 09:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 AM.