Contacts Opening With Previous Custom Form

O

OutdoorRuss

I recently changed the default form for my contacts. Now, contacts
that were created using my old form open with the old form, not my new
one. Is there a way to change this?

Thanks!
 
O

Oliver Vukovics

Hi OutdoorRuss,

have a look on this side for Outlook 2003

http://support.microsoft.com/kb/839804/en-us

Microsoft recommends that you use the Clear Cache method. To do this, follow
these steps:
1.. On the Tools menu, click Options, and then click the Other tab.
2.. Click Advanced Options.
3.. In the Advanced Options box, click Custom Forms.
4.. In the Custom Forms box, click Manage Forms.
5.. In the Forms Manager box, click Clear Cache.
 
S

Sue Mosher [MVP]

Was the old default form also a custom form? If so, then there are two ways
to those contacts open in the new default form:

1) Publish the new form using the same message class, e.g.
IPM.Contact.MyForm as the old default form.

2) Change the value of the MessageClass property on each contact so that it
points to the new form's message class. See
http://www.outlookcode.com/article.aspx?ID=39 for links to code and tools to
acco
--
 
S

Sue Mosher [MVP]

Oops. Finger slipped. The URL I posted has links to code and tools to do a
bulk message class change on items.

If you try method #1, make sure you increment the version # on the
(Properties) page before you publish the form. And you still might need to
clear the forms cache.

And if none of the suggestions work, provide more info. State the Outlook
version, and tell us more about how you implemented the "old form" and "new
form."

FYI, there is a newsgroup specifically for Outlook forms issues "down the
hall" at microsoft.public.outlook.program_forms or, via web interface, at
http://www.microsoft.com/office/com...spx?dg=microsoft.public.outlook.program_forms

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
O

OutdoorRuss

In case anyone comes across this, here is the code. "MyFormName" is
the name of your form.

Sub ChangeMessageClass()
Set olApp = New Outlook.Application
Set olNS = olApp.GetNamespace("MAPI")
Set ContactsFolder = _
olNS.GetDefaultFolder(olFolderContacts)
Set ContactItems = ContactsFolder.Items
For Each Itm In ContactItems
If Itm.MessageClass <> "IPM.Contact.MyFormName" Then
Itm.MessageClass = "IPM.Contact.MyFormName"
Itm.Save
End If
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top