![]() |
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
|
|||
|
|||
![]() Hi, In my inbox I have a folder "Servers" That folder is populated by mails that either I moved or created there using VBS. The script flags these mails Red, Green, Blue and Yellow based on different criteria. As a final step the script needs to sort (or rather group) these mailitems by flagcolor. When I arrive at work I want my server reports grouped by color. I came across items.sort "somekey" , started looking for its "flag" equivalent and then read a disconcerting post from Sue Mosher that sorting this way isn't going to cut it in the GUI anyway. please give me a few pointers to solve this thx Ward |
Ads |
#2
|
|||
|
|||
![]()
Have you tried using the View | Current View | Define Views command to
create a new named view with the layout you want? If you continue to have problems with this, please state your Outlook version. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "King Albert" wrote in message .253... Hi, In my inbox I have a folder "Servers" That folder is populated by mails that either I moved or created there using VBS. The script flags these mails Red, Green, Blue and Yellow based on different criteria. As a final step the script needs to sort (or rather group) these mailitems by flagcolor. When I arrive at work I want my server reports grouped by color. I came across items.sort "somekey" , started looking for its "flag" equivalent and then read a disconcerting post from Sue Mosher that sorting this way isn't going to cut it in the GUI anyway. please give me a few pointers to solve this thx Ward |
#3
|
|||
|
|||
![]()
I hadn't thought of that, but I tried it just now.
In the GUI it works: if I select the "Servers" view mailitems are sorted by flagcolor. In the script I added this line I discovered in one of your previous posts : ol.ActiveExplorer.CurrentView = "Servers" But it didn't change the default view in that folder after it ran (with on error switched off and no faults) The script expects its mails in the Servers folder, when runs it creates a new subfolder With serverfolder Set nieuwefolder =.Folders.add("Servers " & Date) ... and then starts to flag and move the mailitems. Every run it deletes the folder from 7 days ago. It would be cool if we could attach the "Servers view" to these newly created folders. Target is Outlook 2003 thank you ! Ward "Sue Mosher [MVP]" wrote in : Have you tried using the View | Current View | Define Views command to create a new named view with the layout you want? If you continue to have problems with this, please state your Outlook version. |
#4
|
|||
|
|||
![]()
From your description, it sounds like Servers may be a view with the scope
"on this folder visible to everyone," which means it cannot be used on other folders. Make a copy of that view with the scope "on all Mail and Post folders," so that it can be used on any folder. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "King Albert" wrote in message 6.253... I hadn't thought of that, but I tried it just now. In the GUI it works: if I select the "Servers" view mailitems are sorted by flagcolor. In the script I added this line I discovered in one of your previous posts : ol.ActiveExplorer.CurrentView = "Servers" But it didn't change the default view in that folder after it ran (with on error switched off and no faults) The script expects its mails in the Servers folder, when runs it creates a new subfolder With serverfolder Set nieuwefolder =.Folders.add("Servers " & Date) ... and then starts to flag and move the mailitems. Every run it deletes the folder from 7 days ago. It would be cool if we could attach the "Servers view" to these newly created folders. Target is Outlook 2003 thank you ! Ward "Sue Mosher [MVP]" wrote in : Have you tried using the View | Current View | Define Views command to create a new named view with the layout you want? If you continue to have problems with this, please state your Outlook version. "King Albert" wrote in message .253... Hi, In my inbox I have a folder "Servers" That folder is populated by mails that either I moved or created there using VBS. The script flags these mails Red, Green, Blue and Yellow based on different criteria. As a final step the script needs to sort (or rather group) these mailitems by flagcolor. When I arrive at work I want my server reports grouped by color. I came across items.sort "somekey" , started looking for its "flag" equivalent and then read a disconcerting post from Sue Mosher that sorting this way isn't going to cut it in the GUI anyway. |
#5
|
|||
|
|||
![]()
No it was right first time, but I did trip over objectvariable references
like I shouldn't anymore :-) Set ol.ActiveExplorer.CurrentFolder = nieuwefolder ol.ActiveExplorer.CurrentView = "Servers" Thank you very much ! Ward "Sue Mosher [MVP]" wrote in : From your description, it sounds like Servers may be a view with the scope "on this folder visible to everyone," which means it cannot be used on other folders. Make a copy of that view with the scope "on all Mail and Post folders," so that it can be used on any folder. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to sort on birthdays | geekseeker | Outlook - Calandaring | 2 | December 15th 08 01:44 AM |
FlagStatus question | Salad | Outlook and VBA | 4 | November 7th 08 04:01 PM |
How to sort E-mails? | Marek Staniewski | Outlook - General Queries | 0 | June 29th 07 10:13 AM |
Sort Rules | Art Beck | Outlook Express | 6 | November 4th 06 03:49 PM |
sort by several categories | Bill M | Outlook - Using Contacts | 1 | July 4th 06 10:07 AM |