![]() |
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
|
|||
|
|||
![]()
I really feel that the ability to specify filters in SQL is truly an enabling
feature in Outlook. My way of organizing tens of thousands of emails is to actually leave them in one big folder (I start a new one each year), and to use categories as tags. Categories is really a nice field because you can assign multiple ones per message. I expose this field and sort by it in message view, and it blows away (to me) the notion of making many neat little folders and trying to figure out which one a message should go into (or copying it multiple times into multiple folders). It's a real power method for organizing messages, cause you can easily change, consolidate, and tweak the categories of multiple messages very quickly. Imagine trying to do this with folders, where you can really only see into them one folder at a time. Often, even in this method, I need to narrow down my search. I can still find 1000 messages having a specific category, which I can sometimes deal with by employing a secondary grouping, but I cannot sadly group by categories within a grouping by categories (too much recursion I guess). Say I want to find things having two categories, "NPS" and "AMES". I only have one message with both categories, but I have 500 messages that have NPS and 700 messages that have AMES. With the ability to customize a filter in views using SQL, I can do something like this: ("urn:schemas-microsoft-com ![]() ![]() "urn:schemas-microsoft-com ![]() ![]() and this prunes away the clutter very quickly to the single one message that related to both those category tags. In fact, that is the only way I can quickly find those intersections. SORRY FOR THE LONG PREAMBLE, but this is my zillion dollar question: Can we use macros to define view filters on the fly? Instead of having to clumsily click through a bunch of stuff to get to the filter dialog and type it in, I'd like to get to the point of having quick-select macros that can help me find things in a flash. No more clicking through pigeon-holed folders, I can't go back at this point. -jim |
Ads |
#2
|
|||
|
|||
![]()
Yes, it can be done, but the details depend on your Outlook version, which
you should always include when posting to an Outlook forum. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "JIMBOLUKE" wrote: I really feel that the ability to specify filters in SQL is truly an enabling feature in Outlook. My way of organizing tens of thousands of emails is to actually leave them in one big folder (I start a new one each year), and to use categories as tags. Categories is really a nice field because you can assign multiple ones per message. I expose this field and sort by it in message view, and it blows away (to me) the notion of making many neat little folders and trying to figure out which one a message should go into (or copying it multiple times into multiple folders). It's a real power method for organizing messages, cause you can easily change, consolidate, and tweak the categories of multiple messages very quickly. Imagine trying to do this with folders, where you can really only see into them one folder at a time. Often, even in this method, I need to narrow down my search. I can still find 1000 messages having a specific category, which I can sometimes deal with by employing a secondary grouping, but I cannot sadly group by categories within a grouping by categories (too much recursion I guess). Say I want to find things having two categories, "NPS" and "AMES". I only have one message with both categories, but I have 500 messages that have NPS and 700 messages that have AMES. With the ability to customize a filter in views using SQL, I can do something like this: ("urn:schemas-microsoft-com ![]() ![]() "urn:schemas-microsoft-com ![]() ![]() and this prunes away the clutter very quickly to the single one message that related to both those category tags. In fact, that is the only way I can quickly find those intersections. SORRY FOR THE LONG PREAMBLE, but this is my zillion dollar question: Can we use macros to define view filters on the fly? Instead of having to clumsily click through a bunch of stuff to get to the filter dialog and type it in, I'd like to get to the point of having quick-select macros that can help me find things in a flash. No more clicking through pigeon-holed folders, I can't go back at this point. |
#3
|
|||
|
|||
![]()
Sorry, it's 2007, I was making the post too long....
"Sue Mosher [MVP-Outlook]" wrote: Yes, it can be done, but the details depend on your Outlook version, which you should always include when posting to an Outlook forum. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "JIMBOLUKE" wrote: I really feel that the ability to specify filters in SQL is truly an enabling feature in Outlook. My way of organizing tens of thousands of emails is to actually leave them in one big folder (I start a new one each year), and to use categories as tags. Categories is really a nice field because you can assign multiple ones per message. I expose this field and sort by it in message view, and it blows away (to me) the notion of making many neat little folders and trying to figure out which one a message should go into (or copying it multiple times into multiple folders). It's a real power method for organizing messages, cause you can easily change, consolidate, and tweak the categories of multiple messages very quickly. Imagine trying to do this with folders, where you can really only see into them one folder at a time. Often, even in this method, I need to narrow down my search. I can still find 1000 messages having a specific category, which I can sometimes deal with by employing a secondary grouping, but I cannot sadly group by categories within a grouping by categories (too much recursion I guess). Say I want to find things having two categories, "NPS" and "AMES". I only have one message with both categories, but I have 500 messages that have NPS and 700 messages that have AMES. With the ability to customize a filter in views using SQL, I can do something like this: ("urn:schemas-microsoft-com ![]() ![]() "urn:schemas-microsoft-com ![]() ![]() and this prunes away the clutter very quickly to the single one message that related to both those category tags. In fact, that is the only way I can quickly find those intersections. SORRY FOR THE LONG PREAMBLE, but this is my zillion dollar question: Can we use macros to define view filters on the fly? Instead of having to clumsily click through a bunch of stuff to get to the filter dialog and type it in, I'd like to get to the point of having quick-select macros that can help me find things in a flash. No more clicking through pigeon-holed folders, I can't go back at this point. |
#4
|
|||
|
|||
![]()
In Outlook 2007, it's easy: Return the view that you want to work with as a
TableView object, then set its Filter property to your query string. For example: Public Sub Filter1() Dim strQuery As String Dim vw As View Dim tvw As TableView strQuery = "(""urn:schemas-microsoft-com ![]() ![]() '%NPS%') " & _ "AND (""urn:schemas-microsoft-com ![]() ![]() '%AMES%')" Set vw = Application.ActiveExplorer.CurrentView If vw.ViewType = olTableView Then Set tvw = vw tvw.Filter = strQuery tvw.Apply End If Set vw = Nothing Set tvw = Nothing End Sub -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Sue Mosher [MVP-Outlook]" wrote: Yes, it can be done, but the details depend on your Outlook version, which you should always include when posting to an Outlook forum. "JIMBOLUKE" wrote: I want to find things having two categories, "NPS" and "AMES". I only have one message with both categories, but I have 500 messages that have NPS and 700 messages that have AMES. With the ability to customize a filter in views using SQL, I can do something like this: ("urn:schemas-microsoft-com ![]() ![]() "urn:schemas-microsoft-com ![]() ![]() and this prunes away the clutter very quickly to the single one message that related to both those category tags. In fact, that is the only way I can quickly find those intersections. SORRY FOR THE LONG PREAMBLE, but this is my zillion dollar question: Can we use macros to define view filters on the fly? Instead of having to clumsily click through a bunch of stuff to get to the filter dialog and type it in, I'd like to get to the point of having quick-select macros that can help me find things in a flash. No more clicking through pigeon-holed folders, I can't go back at this point. |
#5
|
|||
|
|||
![]()
Thanks Sue, this is neat
"Sue Mosher [MVP-Outlook]" wrote: In Outlook 2007, it's easy: Return the view that you want to work with as a TableView object, then set its Filter property to your query string. For example: Public Sub Filter1() Dim strQuery As String Dim vw As View Dim tvw As TableView strQuery = "(""urn:schemas-microsoft-com ![]() ![]() '%NPS%') " & _ "AND (""urn:schemas-microsoft-com ![]() ![]() '%AMES%')" Set vw = Application.ActiveExplorer.CurrentView If vw.ViewType = olTableView Then Set tvw = vw tvw.Filter = strQuery tvw.Apply End If Set vw = Nothing Set tvw = Nothing End Sub -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Sue Mosher [MVP-Outlook]" wrote: Yes, it can be done, but the details depend on your Outlook version, which you should always include when posting to an Outlook forum. "JIMBOLUKE" wrote: I want to find things having two categories, "NPS" and "AMES". I only have one message with both categories, but I have 500 messages that have NPS and 700 messages that have AMES. With the ability to customize a filter in views using SQL, I can do something like this: ("urn:schemas-microsoft-com ![]() ![]() "urn:schemas-microsoft-com ![]() ![]() and this prunes away the clutter very quickly to the single one message that related to both those category tags. In fact, that is the only way I can quickly find those intersections. SORRY FOR THE LONG PREAMBLE, but this is my zillion dollar question: Can we use macros to define view filters on the fly? Instead of having to clumsily click through a bunch of stuff to get to the filter dialog and type it in, I'd like to get to the point of having quick-select macros that can help me find things in a flash. No more clicking through pigeon-holed folders, I can't go back at this point. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mail under construction | Stone Monkey | Outlook Express | 2 | March 17th 07 07:31 AM |
Outlook2007 crash when sortTable is too complex. | T-rev | Add-ins for Outlook | 0 | March 15th 07 04:36 PM |
Make views available in public contacts | Doug | Outlook - Using Contacts | 1 | January 29th 07 06:32 AM |
Programmatic Fax Problem | Yanir | Outlook - Fax Functions | 4 | December 16th 06 05:11 PM |
Complex Outlook rules - programatically? | [email protected] | Outlook - General Queries | 3 | June 27th 06 07:04 PM |