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 / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

The day before a given date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Batt - 06 Nov 2006 19:39 GMT
I need to read the date of the day before every given date in European form
(dd.mm.yyyy) from the calendar into a string variable. For instance I have a
variable day1 = "01.11.2006" and need this one minus one day (day0 =
"31.10.2006"). I don't even know where to start doing this in VBA. Could
someone help me a little? Thank you, Paul
neo [mvp outlook] - 06 Nov 2006 19:43 GMT
I believe you are after the DateAdd function.

dYesterday = DateAdd("d", -1, Now())

>I need to read the date of the day before every given date in European form
>(dd.mm.yyyy) from the calendar into a string variable. For instance I have
>a variable day1 = "01.11.2006" and need this one minus one day (day0 =
>"31.10.2006"). I don't even know where to start doing this in VBA. Could
>someone help me a little? Thank you, Paul
 
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.