Outlook "time clock" Macro

B

barnold

I am looking to create a macro in outlook so when I start Outlook it
creates a appointment with the current time and then on shutdown. I
would like to use it as a "time clock" program. I do not have a
outlook VBA book, but I have programmed in Excell VBA. Thank you in
advance for any help.
 
M

Michael Bauer [MVP - Outlook]

Do you want to use that for tracking for how long OL is running? This
example uses a journalItem for that:

Private Sub Application_Startup()
Dim Ji As Outlook.JournalItem
Set Ji = Application.CreateItem(olJournalItem)
Ji.Start = Now
Ji.Save
Ji.Display
Ji.StartTimer
Ji.GetInspector.WindowState = olMinimized
End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Wed, 26 Aug 2009 06:49:08 -0700 (PDT) schrieb
(e-mail address removed):
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top