A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

macro to assign category to new email





 
 
Thread Tools Display Modes
  #1  
Old May 21st 08, 11:09 AM posted to microsoft.public.outlook
tempora123@gmail.com
external usenet poster
 
Posts: 2
Default macro to assign category to new email

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  
Old May 21st 08, 01:43 PM posted to microsoft.public.outlook
Roady [MVP]
external usenet poster
 
Posts: 1,345
Default macro to assign category to new email

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  
Old May 21st 08, 07:59 PM posted to microsoft.public.outlook
tempora123@gmail.com
external usenet poster
 
Posts: 2
Default macro to assign category to new email

I need some quick way to assign category to a new email. What would be
the macro to bring up the categories window?
  #4  
Old May 22nd 08, 11:34 AM posted to microsoft.public.outlook
Roady [MVP]
external usenet poster
 
Posts: 1,345
Default macro to assign category to new email

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  
Old May 22nd 08, 11:07 PM posted to microsoft.public.outlook
N.A.
external usenet poster
 
Posts: 1
Default macro to assign category to new email

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  
Old July 28th 08, 04:44 PM posted to microsoft.public.outlook
UsedToCode
external usenet poster
 
Posts: 2
Default macro to assign category to new email

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  
Old July 29th 08, 03:28 PM posted to microsoft.public.outlook
Milly Staples [MVP - Outlook][_2_]
external usenet poster
 
Posts: 1,348
Default macro to assign category to new email

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  
Old July 30th 08, 11:18 PM posted to microsoft.public.outlook
UsedToCode
external usenet poster
 
Posts: 2
Default macro to assign category to new email

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 03:23 PM
Assign a category by email account Ed Outlook - General Queries 1 March 21st 07 06:44 PM
Macro to open a new Task and assign it a specific category Steve Marshall Outlook and VBA 1 November 9th 06 07:01 AM
Way to assign a default category? StargateFanFromWork Outlook - General Queries 2 August 18th 06 04:26 PM
How can I assign a category for a new contact Outlook 2007 Outlook - General Queries 1 July 27th 06 05:54 PM


All times are GMT +1. The time now is 09:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Moneygram - Cheap Loan - Mortgages - Myspace Layouts - Mobile Phones