Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

Need help with a date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Office_Novice - 30 Apr 2008 22:57 GMT
This is part of a larger macro. What i need is on fridays after 3:30p for the
date in my textbox to goto the next work day. any ideas? Any help will be
great.

With Me.qcDte
       Dim MyTime
   MyTime = #3:30:00 PM#
  If Time > MyTime Then
       .Value = Date + 1
      End If
   If Time < MyTime Then
       .Value = Date
        End If
   End With
Barb Reinhardt - 01 May 2008 00:24 GMT
Use this function to get the weekday

If Weekday(Date, vbMonday) = 5 And Time > "3:30 PM" Then
   'Execute what you want to do for Friday after 3:30
End if
Signature

HTH,
Barb Reinhardt

> This is part of a larger macro. What i need is on fridays after 3:30p for the
> date in my textbox to goto the next work day. any ideas? Any help will be
[quoted text clipped - 10 lines]
>          End If
>     End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.