Question Locked

New Task Macro on Outlook 2007

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi to all.
I'm looking for a macro that create a new task on Outlook 2007 with pre set High priority and with Today assign date instead of none.

Can anyone help me ? io other office product i can register new macro but in office i have to write it from 0.

2 replies

by riccardo.pastena

I've found and edit a macro that create a new task document with stardate and optional duedate on outlook 2007.

Note : You have to digitally sign the macro because if you restart your sistem the un-signed marco will be blocked automatically.

MACRO :

Public Sub Attivita_inizio_fine()
Dim objApp As Outlook.Application
Dim objTask As TaskItem

Set objApp = CreateObject("Outlook.Application")
Set objTask = objApp.CreateItem(olTaskItem)

objTask.StartDate = Date
objTask.DueDate = Date + 7
objTask.Display

Set objApp = Nothing
Set objTask = Nothing
End Sub

This discussion is closed to new replies.