"Save Task Order" in code?

  • Thread starter markus.aeschimann
  • Start date
M

markus.aeschimann

Hello,

Is it possible to create (VBA) code that has the functionality of
"Actions -> Save Task Order"?

With this code I can display at least the tasks window:

Sub OrderTasks()
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myfolder = myNameSpace.GetDefaultFolder(olFolderTasks)
On Error GoTo ErrorHandler
myfolder.Display
Exit Sub
ErrorHandler:
MsgBox "There are no items to display! "
End Sub

But, I don't know how to select "List View" and how to call the
function Save Task Order.

Thank you very much for your help.

Regards,
Markus
 
Top