![]() |
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
|
|||
|
|||
![]()
OK, here is what I am trying to do. I have used the flags to categorize
emails and set up some icons on a toolbar that I can click on and it applies the flag color to the email while the email is in the inbox view, the place I see the subject, from, received by on a line for each message in my inbox. This has worked fine, but now I want to apply the same idea but I want to apply a category to the email instead of a flag. I have used some code that allows me to open the email and apply this category, but I want this macro to apply the category with out the need of opening the email in a new window. I tried this code: dim objMail as outlook.mailitem set objMail=application.activeinspector.selection(1) with objMail .categories = "category name" .save end with what works when the email is open in it own window is this: dim objMail as outlook.mailitem set objMail=application.activeinspector.currentitem with objMail .categories = "category name" .save end with Does anyone know of way to accomplish what I have listed here? Has anyone ever done something similar?? Please help. -- David |
Ads |
#2
|
|||
|
|||
![]()
The object browser (F2 in VBA). Use it to look up Selection, and you should
see that it's a property of ActiveExplorer, not ActiveInspector. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "DStrong" wrote in message ... OK, here is what I am trying to do. I have used the flags to categorize emails and set up some icons on a toolbar that I can click on and it applies the flag color to the email while the email is in the inbox view, the place I see the subject, from, received by on a line for each message in my inbox. This has worked fine, but now I want to apply the same idea but I want to apply a category to the email instead of a flag. I have used some code that allows me to open the email and apply this category, but I want this macro to apply the category with out the need of opening the email in a new window. I tried this code: dim objMail as outlook.mailitem set objMail=application.activeinspector.selection(1) with objMail .categories = "category name" .save end with what works when the email is open in it own window is this: dim objMail as outlook.mailitem set objMail=application.activeinspector.currentitem with objMail .categories = "category name" .save end with Does anyone know of way to accomplish what I have listed here? Has anyone ever done something similar?? Please help. -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I Apply Two Filters to Task View? | mtbcpa | Outlook - General Queries | 5 | June 23rd 08 05:48 PM |
apply a form to emails received in a team inbox | console1 | Outlook - Using Forms | 1 | September 8th 07 04:25 PM |
How do I apply a custom view to all of my folders? | ScottinSB | Outlook - Installation | 1 | June 18th 07 04:05 AM |
sort by category in the category view | captaindarth | Outlook - Using Contacts | 2 | February 16th 07 10:53 PM |
Apply weekly view to daily view | Rhys Davies | Outlook - Calandaring | 1 | January 12th 06 09:45 AM |