![]() |
| 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. |
|
|||||||
| Tags: assign, category, email, macro |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I would like to create a macro, which assigns a specified category to a new email being composed. To be more specific, on executing this macro while editing new email, a 'Categories' window would pop up (which is also selected from 'Options - Categories') where it is possible to select a category for the new email. Thanks for your help. rgds. |
| Ads |
|
#2
|
|||
|
|||
|
So how would executing that macro be different from pressing the Categories
button? If you want to automate assigning categories to outgoing emails, you can also create a message rule. Alternatively, this addin might be interesting to you; http://addins.howto-outlook.com/vbof...ategorymanager -- Robert Sparnaaij [MVP-Outlook] Coauthor, Configuring Microsoft Outlook 2003 http://www.howto-outlook.com/ Outlook FAQ, HowTo, Downloads, Add-Ins and more http://www.msoutlook.info/ Real World Questions, Real World Answers ----- wrote in message ... Hello, I would like to create a macro, which assigns a specified category to a new email being composed. To be more specific, on executing this macro while editing new email, a 'Categories' window would pop up (which is also selected from 'Options - Categories') where it is possible to select a category for the new email. Thanks for your help. rgds. |
|
#3
|
|||
|
|||
|
I need some quick way to assign category to a new email. What would be
the macro to bring up the categories window? |
|
#4
|
|||
|
|||
|
Why does this have to be a macro?
Press the Categorize button or use the keyboard shortcut for your localized version of Outlook. -- Robert Sparnaaij [MVP-Outlook] Coauthor, Configuring Microsoft Outlook 2003 http://www.howto-outlook.com/ Outlook FAQ, HowTo, Downloads, Add-Ins and more http://www.msoutlook.info/ Real World Questions, Real World Answers ----- wrote in message ... I need some quick way to assign category to a new email. What would be the macro to bring up the categories window? |
|
#5
|
|||
|
|||
|
What do you mean by press the Categorize button? I don't see a catorgorize
button on the outgoing message form. I can put the OPtions button on the toolbar, but it takes too many mouse clicks to finally get the category assigned. A macro would be nice because it would be a reminder everytime a message is sent to assign it to a cateory. "Roady [MVP]" wrote: Why does this have to be a macro? Press the Categorize button or use the keyboard shortcut for your localized version of Outlook. -- Robert Sparnaaij [MVP-Outlook] Coauthor, Configuring Microsoft Outlook 2003 http://www.howto-outlook.com/ Outlook FAQ, HowTo, Downloads, Add-Ins and more http://www.msoutlook.info/ Real World Questions, Real World Answers ----- wrote in message ... I need some quick way to assign category to a new email. What would be the macro to bring up the categories window? |
|
#6
|
|||
|
|||
|
On a similar note, I would like to create a few macro buttons, where each
button would assign a specific (pre-programmed) category to a number of selected emails in my inbox. I could then set up rules to move categorized email into appropriate folders. Alternatively, a macro button could just move the selected emails into a specific (pre-programmed) folder without assigning a category. Can anyone help with such a macro? " wrote: Hello, I would like to create a macro, which assigns a specified category to a new email being composed. To be more specific, on executing this macro while editing new email, a 'Categories' window would pop up (which is also selected from 'Options - Categories') where it is possible to select a category for the new email. Thanks for your help. rgds. |
|
#7
|
|||
|
|||
|
Outlook does not support macros. You can, however, write a little code to
do this. See http://www.outlookcode.com or post to microsoft.public.program_vba. -- Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. How to ask a question: http://support.microsoft.com/KB/555375 After furious head scratching, UsedToCode asked: | On a similar note, I would like to create a few macro buttons, where | each button would assign a specific (pre-programmed) category to a | number of selected emails in my inbox. I could then set up rules to | move categorized email into appropriate folders. Alternatively, a | macro button could just move the selected emails into a specific | (pre-programmed) folder without assigning a category. Can anyone help | with such a macro? | | | " wrote: | || Hello, || || I would like to create a macro, which assigns a specified category to || a new email being composed. To be more specific, on executing this || macro while editing new email, a 'Categories' window would pop up || (which is also selected from 'Options - Categories') where it is || possible to select a category for the new email. || || Thanks for your help. || rgds. |
|
#8
|
|||
|
|||
|
Thanks for your response, but Outlook does make reference to macros. In any
case, I found the following code in another thread that enables me to select a bunch of emails in my Inbox and move them to the folder called “RcvBkt”, which is a folder located within my Inbox. I would like to assign a hard-coded category to a number of selected emails in my inbox. I imagine the code is very similar, except the move statement in the routine below would change to something like the statement below. However, the closest thing I’ve come up with is "objItem.Categories", but it’s not an action like move is so it doesn’t work. Any suggestions? objItem.SetCategory “PERSONAL” Sub MoveIt() On Error Resume Next Dim objFolder As Outlook.MAPIFolder, objInbox As Outlook.MAPIFolder Dim objNS As Outlook.NameSpace, objItem As Outlook.MailItem Set objNS = Application.GetNamespace("MAPI") Set objInbox = objNS.GetDefaultFolder(olFolderInbox) Set objFolder = objInbox.Folders("RcvBkt") If Application.ActiveExplorer.Selection.Count = 0 Then 'Require that this procedure be called only when a message is selected Exit Sub End If For Each objItem In Application.ActiveExplorer.Selection If objFolder.DefaultItemType = olMailItem Then If objItem.Class = olMail Then objItem.Move objFolder End If End If Next Set objItem = Nothing Set objFolder = Nothing Set objInbox = Nothing Set objNS = Nothing End Sub "Milly Staples [MVP - Outlook]" wrote: Outlook does not support macros. You can, however, write a little code to do this. See http://www.outlookcode.com or post to microsoft.public.program_vba. -- Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. How to ask a question: http://support.microsoft.com/KB/555375 After furious head scratching, UsedToCode asked: | On a similar note, I would like to create a few macro buttons, where | each button would assign a specific (pre-programmed) category to a | number of selected emails in my inbox. I could then set up rules to | move categorized email into appropriate folders. Alternatively, a | macro button could just move the selected emails into a specific | (pre-programmed) folder without assigning a category. Can anyone help | with such a macro? | | | " wrote: | || Hello, || || I would like to create a macro, which assigns a specified category to || a new email being composed. To be more specific, on executing this || macro while editing new email, a 'Categories' window would pop up || (which is also selected from 'Options - Categories') where it is || possible to select a category for the new email. || || Thanks for your help. || rgds. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can't assign macro | O.H.Olsson@gmail.com | Outlook and VBA | 1 | July 24th 07 02:23 PM |
| Assign a category by email account | Ed | Outlook - General Queries | 1 | March 21st 07 05:44 PM |
| Macro to open a new Task and assign it a specific category | Steve Marshall | Outlook and VBA | 1 | November 9th 06 06:01 AM |
| Way to assign a default category? | StargateFanFromWork | Outlook - General Queries | 2 | August 18th 06 03:26 PM |
| How can I assign a category for a new contact | Outlook 2007 | Outlook - General Queries | 1 | July 27th 06 04:54 PM |