+ Reply to Thread
Results 1 to 4 of 4

.DeferredDeliveryTime email macro date problem

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    notts
    MS-Off Ver
    365
    Posts
    24

    .DeferredDeliveryTime email macro date problem

    Hi folks,

    I am using

    Please Login or Register  to view this content.
    to delay an email for 4pm to be sent the same day. Using the code I have there it sets the date in the Outlook delay to 30/12/1899 and sends the email straight away.

    I need to be able to use todays date. I have tried

    Please Login or Register  to view this content.
    and various morphs of that with no joy. I have also tried using a variable by putting =TODAY() in a cell, setting the variable as this and using the variable as such:

    Please Login or Register  to view this content.
    Can anyone point me in the right direction?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: .DeferredDeliveryTime email macro date problem

    If you want 16:00 today try this.
    Please Login or Register  to view this content.
    That should give you 21/05/2013 16:00 today.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-10-2013
    Location
    notts
    MS-Off Ver
    365
    Posts
    24

    Re: .DeferredDeliveryTime email macro date problem

    Hi Norie,

    Thanks for the pointer, it didnt work at first but I ran the code into a cell to see what it was outputting. Your code output 21/05/201316:00:00, so I modified it to:

    Please Login or Register  to view this content.
    And now it plays happy thanks!

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: .DeferredDeliveryTime email macro date problem

    My bad, the & should be a +.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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