+ Reply to Thread
Results 1 to 4 of 4

Display Fridays date (and message) if current date is Monday

  1. #1
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Display Fridays date (and message) if current date is Monday

    Hi All,
    I currently have the VB code set to display yesterdays date in an emails subject line, but I need it to display the previous Fridays date instead if the current date is Monday. Additionally, I need the second line in the email body to only display if those same conditions are true. We email reports from the previous work day's data, but on monday we also have the same report to email with additional data. Automating this process will save us quite a bit of work. Thanks!

    Please Login or Register  to view this content.
    The original full code was graciously provided by John H Davis here:
    http://www.excelforum.com/excel-prog...tus-notes.html

    Thanks again!
    Last edited by Pierce Quality; 09-26-2013 at 09:41 AM.

  2. #2
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Display Fridays date (and message) if current date is Monday

    Bumping along.

  3. #3
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Display Fridays date (and message) if current date is Monday

    Bumping along.

  4. #4
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Display Fridays date (and message) if current date is Monday

    replace your subject line with this
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Display Fridays date (and message) if current date is Monday

    Quote Originally Posted by slx View Post
    replace your subject line with this
    Please Login or Register  to view this content.
    Thank you very much, that worked great for our subject line! Under that structure we were able to get our addional text to display properly in the body as well.
    Here is the current code:

    Please Login or Register  to view this content.
    We are still having an issue with our signature not getting displayed, but I will be posting that under a different thread today and marking this one as solved.
    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to fill in date values of current week beginning with Monday using button.
    By Master Foo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2013, 03:01 AM
  2. Replies: 3
    Last Post: 12-30-2012, 03:59 PM
  3. Date Picker Control will not display Current Date
    By SP Brian in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-04-2011, 01:33 PM
  4. SOLVED - Display the date of the previous Monday?
    By tavlrb in forum Excel General
    Replies: 2
    Last Post: 02-26-2011, 01:50 AM
  5. Replies: 15
    Last Post: 02-06-2011, 06:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1