![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
Am 5 Oct 2006 07:01:02 -0700 schrieb :
You can change the view in this way: Dim Folder As Outlook.MAPIFolder Set Folder = Application.ActiveExplorer.CurrentFolder Folder.Views(2).Apply Instead of the index you can access a view also by its name. And here´s a description of how to execute commandbar buttons: http://www.outlookcode.com/d/tips/commandbarfun.htm -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Default "file as" order Contact option doesn't work with JapaneseC | kenshin_tm | Outlook - Using Contacts | 0 | October 4th 06 03:44 PM |
How to get Address cards to be in order of First name and then last name (and not in "file as" order)? | ship | Outlook - General Queries | 2 | September 26th 06 08:58 PM |
Can not open "task request" "task accepted" in Inbox | LaParker | Outlook - General Queries | 2 | August 9th 06 10:09 PM |
Save Task Order Error | KT | Outlook - Using Forms | 0 | April 7th 06 02:40 PM |
Outlook should let me set the order of the "Show names" list . | EarlofDuke | Outlook - Using Contacts | 0 | January 25th 06 02:02 PM |