PC Review


Reply
Thread Tools Rate Thread

Change Message Class for Individual Contacts

 
 
=?Utf-8?B?QnJpZGdldA==?=
Guest
Posts: n/a
 
      26th Feb 2007
I attempted to change the message class for all of the items at once in order
to convert existing items to new custom form but was unsuccessful. At this
point, I would just like to be able to change each individual message class.
How do I do this? Any help is appreciated!

(Microsoft Outlook 2003)
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      26th Feb 2007
Run code to change the value of the MessageClass property for each selected item.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bridget" <(E-Mail Removed)> wrote in message news:4ED9ECFA-B5EC-495A-AF44-(E-Mail Removed)...
>I attempted to change the message class for all of the items at once in order
> to convert existing items to new custom form but was unsuccessful. At this
> point, I would just like to be able to change each individual message class.
> How do I do this? Any help is appreciated!
>
> (Microsoft Outlook 2003)

 
Reply With Quote
 
Peter Marchert
Guest
Posts: n/a
 
      26th Feb 2007
I only know the way by code or a tool like "EditContacts"

http://www.marchert.de/software.html#ec

Peter

--
Peter Marchert
[EDP-Service Marchert]
Homepage: http://www.marchert.de
Programming for Excel and Outlook


On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
> I attempted to change the message class for all of the items at once in order
> to convert existing items to new custom form but was unsuccessful. At this
> point, I would just like to be able to change each individual message class.
> How do I do this? Any help is appreciated!
>
> (Microsoft Outlook 2003)



 
Reply With Quote
 
=?Utf-8?B?QnJpZGdldA==?=
Guest
Posts: n/a
 
      1st Mar 2007
Thank you Sue and Peter, I will see if I can figure something out. I'll let
you know!

"Peter Marchert" wrote:

> I only know the way by code or a tool like "EditContacts"
>
> http://www.marchert.de/software.html#ec
>
> Peter
>
> --
> Peter Marchert
> [EDP-Service Marchert]
> Homepage: http://www.marchert.de
> Programming for Excel and Outlook
>
>
> On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
> > I attempted to change the message class for all of the items at once in order
> > to convert existing items to new custom form but was unsuccessful. At this
> > point, I would just like to be able to change each individual message class.
> > How do I do this? Any help is appreciated!
> >
> > (Microsoft Outlook 2003)

>
>
>

 
Reply With Quote
 
=?Utf-8?B?QnJpZGdldA==?=
Guest
Posts: n/a
 
      5th Mar 2007
I tried looking into writing code to change the Message Class property for
each item, but have been unsuccessful. Could you tell me how to start this
code to apply to each item? I apprectiate your help.

"Bridget" wrote:

> Thank you Sue and Peter, I will see if I can figure something out. I'll let
> you know!
>
> "Peter Marchert" wrote:
>
> > I only know the way by code or a tool like "EditContacts"
> >
> > http://www.marchert.de/software.html#ec
> >
> > Peter
> >
> > --
> > Peter Marchert
> > [EDP-Service Marchert]
> > Homepage: http://www.marchert.de
> > Programming for Excel and Outlook
> >
> >
> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
> > > I attempted to change the message class for all of the items at once in order
> > > to convert existing items to new custom form but was unsuccessful. At this
> > > point, I would just like to be able to change each individual message class.
> > > How do I do this? Any help is appreciated!
> > >
> > > (Microsoft Outlook 2003)

> >
> >
> >

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      5th Mar 2007
Please show the code you already have.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bridget" <(E-Mail Removed)> wrote in message news:F3437814-1C47-4298-9D69-(E-Mail Removed)...
>I tried looking into writing code to change the Message Class property for
> each item, but have been unsuccessful. Could you tell me how to start this
> code to apply to each item? I apprectiate your help.
>
> "Bridget" wrote:
>
>> Thank you Sue and Peter, I will see if I can figure something out. I'll let
>> you know!
>>
>> "Peter Marchert" wrote:
>>
>> > I only know the way by code or a tool like "EditContacts"
>> >
>> > http://www.marchert.de/software.html#ec
>> >

> >
>> >
>> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
>> > > I attempted to change the message class for all of the items at once in order
>> > > to convert existing items to new custom form but was unsuccessful. At this
>> > > point, I would just like to be able to change each individual message class.
>> > > How do I do this? Any help is appreciated!
>> > >
>> > > (Microsoft Outlook 2003)
>> >
>> >
>> >

 
Reply With Quote
 
=?Utf-8?B?QnJpZGdldA==?=
Guest
Posts: n/a
 
      5th Mar 2007
Here is the code I currently have. Do I need to enter the code and publish
the form prior to bringing the existing items into the folder? Or do I need
to bring the existing contacts into the folder first and then publish the
form with the code?
Sub Item_Open
NewMC = "IPM.Contact.Group Holding"
Set CurFolder = Application.ActiveExplorer.CurrentFolder
Set AllItems = CurFolder.Items
NumItems = CurFolder.Items.Count
For I = 1 to NumItems
Set CurItem = AllItems.Item(I)
If CurItem.MessageClass <> NewMC Then
CurItem.MessageClass = NewMC
CurItem.Save
End If
Next
End Sub

"Sue Mosher [MVP-Outlook]" wrote:

> Please show the code you already have.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
> "Bridget" <(E-Mail Removed)> wrote in message news:F3437814-1C47-4298-9D69-(E-Mail Removed)...
> >I tried looking into writing code to change the Message Class property for
> > each item, but have been unsuccessful. Could you tell me how to start this
> > code to apply to each item? I apprectiate your help.
> >
> > "Bridget" wrote:
> >
> >> Thank you Sue and Peter, I will see if I can figure something out. I'll let
> >> you know!
> >>
> >> "Peter Marchert" wrote:
> >>
> >> > I only know the way by code or a tool like "EditContacts"
> >> >
> >> > http://www.marchert.de/software.html#ec
> >> >
> > >
> >> >
> >> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
> >> > > I attempted to change the message class for all of the items at once in order
> >> > > to convert existing items to new custom form but was unsuccessful. At this
> >> > > point, I would just like to be able to change each individual message class.
> >> > > How do I do this? Any help is appreciated!
> >> > >
> >> > > (Microsoft Outlook 2003)
> >> >
> >> >
> >> >

>

 
Reply With Quote
 
=?Utf-8?B?QnJpZGdldA==?=
Guest
Posts: n/a
 
      5th Mar 2007
When publishing the code for the Message Class for the new custom form, there
seems to be something else that also took place: My emails just in my Inbox
are now converted to Contact Form. (The emails open up with the message in
the Notes section of a default Contact form.)

The message class for my inbox is IPM.Post Is this the correct message
class for the Inbox? I would like to get it changed back. Strange that it
changed, I hadn't done anything to change it. ??

"Sue Mosher [MVP-Outlook]" wrote:

> Please show the code you already have.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
> "Bridget" <(E-Mail Removed)> wrote in message news:F3437814-1C47-4298-9D69-(E-Mail Removed)...
> >I tried looking into writing code to change the Message Class property for
> > each item, but have been unsuccessful. Could you tell me how to start this
> > code to apply to each item? I apprectiate your help.
> >
> > "Bridget" wrote:
> >
> >> Thank you Sue and Peter, I will see if I can figure something out. I'll let
> >> you know!
> >>
> >> "Peter Marchert" wrote:
> >>
> >> > I only know the way by code or a tool like "EditContacts"
> >> >
> >> > http://www.marchert.de/software.html#ec
> >> >
> > >
> >> >
> >> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
> >> > > I attempted to change the message class for all of the items at once in order
> >> > > to convert existing items to new custom form but was unsuccessful. At this
> >> > > point, I would just like to be able to change each individual message class.
> >> > > How do I do this? Any help is appreciated!
> >> > >
> >> > > (Microsoft Outlook 2003)
> >> >
> >> >
> >> >

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      5th Mar 2007
No doubt that happened because the Inbox was the active folder when you ran the code, which uses this statement to determine what folder to act on:

Set CurFolder = Application.ActiveExplorer.CurrentFolder

To make the messages look like messages again, run the code to change the MessageClass but this time change it to IPM.Note.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bridget" <(E-Mail Removed)> wrote in message news:9085E877-1670-443F-97C5-(E-Mail Removed)...
> When publishing the code for the Message Class for the new custom form, there
> seems to be something else that also took place: My emails just in my Inbox
> are now converted to Contact Form. (The emails open up with the message in
> the Notes section of a default Contact form.)
>
> The message class for my inbox is IPM.Post Is this the correct message
> class for the Inbox? I would like to get it changed back. Strange that it
> changed, I hadn't done anything to change it. ??
>
>> >I tried looking into writing code to change the Message Class property for
>> > each item, but have been unsuccessful. Could you tell me how to start this
>> > code to apply to each item? I apprectiate your help.
>> >
>> > "Bridget" wrote:
>> >
>> >> Thank you Sue and Peter, I will see if I can figure something out. I'll let
>> >> you know!
>> >>
>> >> "Peter Marchert" wrote:
>> >>
>> >> > I only know the way by code or a tool like "EditContacts"
>> >> >
>> >> > http://www.marchert.de/software.html#ec
>> >> >
>> > >
>> >> >
>> >> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
>> >> > > I attempted to change the message class for all of the items at once in order
>> >> > > to convert existing items to new custom form but was unsuccessful. At this
>> >> > > point, I would just like to be able to change each individual message class.
>> >> > > How do I do this? Any help is appreciated!
>> >> > >
>> >> > > (Microsoft Outlook 2003)
>> >> >
>> >> >
>> >> >

>>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      5th Mar 2007
I would suggest that you run this code as a VBA macro rather than as part of a published Outlook form.

Also note that you must display the folder that you want to process before you run this code.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bridget" <(E-Mail Removed)> wrote in message news:E915AA35-E60F-4579-91FF-(E-Mail Removed)...
> Here is the code I currently have. Do I need to enter the code and publish
> the form prior to bringing the existing items into the folder? Or do I need
> to bring the existing contacts into the folder first and then publish the
> form with the code?
> Sub Item_Open
> NewMC = "IPM.Contact.Group Holding"
> Set CurFolder = Application.ActiveExplorer.CurrentFolder
> Set AllItems = CurFolder.Items
> NumItems = CurFolder.Items.Count
> For I = 1 to NumItems
> Set CurItem = AllItems.Item(I)
> If CurItem.MessageClass <> NewMC Then
> CurItem.MessageClass = NewMC
> CurItem.Save
> End If
> Next
> End Sub
>


>> >I tried looking into writing code to change the Message Class property for
>> > each item, but have been unsuccessful. Could you tell me how to start this
>> > code to apply to each item? I apprectiate your help.
>> >
>> > "Bridget" wrote:
>> >
>> >> Thank you Sue and Peter, I will see if I can figure something out. I'll let
>> >> you know!
>> >>
>> >> "Peter Marchert" wrote:
>> >>
>> >> > I only know the way by code or a tool like "EditContacts"
>> >> >
>> >> > http://www.marchert.de/software.html#ec
>> >> >
>> > >
>> >> >
>> >> > On 26 Feb., 17:25, Bridget <Brid...@discussions.microsoft.com> wrote:
>> >> > > I attempted to change the message class for all of the items at once in order
>> >> > > to convert existing items to new custom form but was unsuccessful. At this
>> >> > > point, I would just like to be able to change each individual message class.
>> >> > > How do I do this? Any help is appreciated!
>> >> > >
>> >> > > (Microsoft Outlook 2003)
>> >> >
>> >> >
>> >> >

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Message Class for Outlook 2003 Custom Contacts Form? Stephen Morgan Microsoft Outlook Contacts 6 20th Sep 2010 12:44 AM
Message Class change =?Utf-8?B?R29vYmVy?= Microsoft Outlook 1 5th Apr 2005 04:50 PM
Change message class without CDO in 2002 BJ Microsoft Outlook VBA Programming 1 5th Oct 2004 03:57 AM
change outlook message class M K W Microsoft Outlook Discussion 10 28th Sep 2004 12:29 PM
Change message class in PF with agent rfalken Microsoft Outlook Form Programming 3 5th Jan 2004 02:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:42 PM.