• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Change default value in the Options window

Here's a quick and easy (???) one for 500 points !!!

Each day, I write up an email to be sent to all my users and that I select to send only at 01:00am the next day using the Message Options window and selectiong "Do not deliver before -(date)- -01:00-".
Is it possible to configure somewhere in Outlook that the default time displayed in this window would be 01:00 instead of 17:00 so that I don't have to change it each time ? Being able to display also the next day in the "date" field would also be nice.
I looked everywhere in the Options but could not find anything. Maybe a registry entry ?
p.s. I'm using Outlook 2000 or 2003 depending where I am working.

Thanks.

0
ndidomenico
Asked:
ndidomenico
  • 2
1 Solution
 
David LeeCommented:
Greetings, ndidomenico.

I don't believe there's a way to set a default value for this.  Fortunately, a little scripting will set the time for us, saving you the trouble of having to click through those steps.  Here's that script.  Running this script, which we can do with a single mouse click, will create a message with a default subject and set the delivery time for us without you having to do it each time.  The delivery time will always be the following day at 1:00 am.

Sub DeferredDeliveryMessage()
    Dim olkMessage As Outlook.MailItem
    Set olkMessage = Application.CreateItem(olMailItem)
    With olkMessage
        .DeferredDeliveryTime = CDate(Date + 1 & " 1:00:00 AM")
        .Subject = "My Subject"
        .Display
    End With
    Set olkMessage = Nothing
End Sub

Cheers!
0
 
ndidomenicoAuthor Commented:
This is just perfect !!! Works great !

Thanks a lot.

It is amazing how one can customize applications such as Outlook by using scripting. I'd be interested in trying to learn how to do some basic scripting to create little utilities like this one, in Outlook, Word, etc. Would you have any suggestions, references. Nothing complicated. I don't want to start writing complete applications. Just usefull tools to get around limitations or to personnalize my work environment.
0
 
David LeeCommented:
You're welcome.  OutlookCode.com (http://outlookcode.com) is a great place to pick up code samples and hints for Outlook.  I don't know of a similar resource for Word scripts.  
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now