J
JayDe
I am using Access 2007 to create tasks in Outlook 2007. That works fine
except for one thing. I cannot find the right keyword for folder or
subdirectory.
I have organized my tasks in different folder and want to put the tasks I am
creating in Access in the right folder.
Here is the testcode I am working with so far:
Sub MakeOutlookTask()
Dim OutlookApp As Outlook.Application
Dim OutlookTask As Outlook.TaskItem
Set OutlookApp = CreateObject("Outlook.Application")
Set OutlookTask = OutlookApp.CreateItem(olTaskItem)
With OutlookTask
.Subject = "Fjerde Oppgave"
.Body = "Dette er detaljene i oppgaven"
.ReminderSet = True
.ReminderTime = DateAdd("n", 2, Date)
.DueDate = DateAdd("n", 5, Date)
.Categories = "MerVerdi"
.ContactNames = "Geir Alexander Olderbakk."
Here I would like to put the folder
.Save
End With
Set OutlookApp = Nothing
Set OutlookTask = Nothing
End Sub
except for one thing. I cannot find the right keyword for folder or
subdirectory.
I have organized my tasks in different folder and want to put the tasks I am
creating in Access in the right folder.
Here is the testcode I am working with so far:
Sub MakeOutlookTask()
Dim OutlookApp As Outlook.Application
Dim OutlookTask As Outlook.TaskItem
Set OutlookApp = CreateObject("Outlook.Application")
Set OutlookTask = OutlookApp.CreateItem(olTaskItem)
With OutlookTask
.Subject = "Fjerde Oppgave"
.Body = "Dette er detaljene i oppgaven"
.ReminderSet = True
.ReminderTime = DateAdd("n", 2, Date)
.DueDate = DateAdd("n", 5, Date)
.Categories = "MerVerdi"
.ContactNames = "Geir Alexander Olderbakk."
Here I would like to put the folder
.Save
End With
Set OutlookApp = Nothing
Set OutlookTask = Nothing
End Sub