Version

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, my problem it's taht I have some old completed froms. they were build
with one of my first version of form. Now, I have a new form and I want my
old forms with my new form template. But I'm not abble to do it!
Thanks,

Josianne
 
You'll need to run a script or VBA code to change the value of the MessageClass property of the existing items to point to the class of your new published form.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Ok, I've found the code that will help me to do it but I juste don't know
where to put it :\
Sub changeMessageClass()
Set olApp = New Outlook.Application
Set OlNs = olApp.GetNameSpace("MAPI")
Set TasksFolder = olNs.GetDefaultFolder(olFolderTasks)
Set TasksItems = TasksFolder.Items
For Each Itm in TasksItems
If Itm.MessageClass <> "IPM.Task.MyForm" Then
Itm.MessageClass = "IPM.Task.MyForm"
Itm.Save
End If
Next
End Sub
 
The code you have can be run from any Office program VBA environment.

Did you publish the new form under a different name? Or did you just change the version number and use the same message class?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I've published it on the same name but I change some fields on it and my
version number!
 
Then the code won't do anything at all, because the old and new MessageClass values are the same.

Where is the form published? If you create a new item with the published form, do you see the new version? If you then open an existing item, what version does Help | About This Form show?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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

Similar Threads


Back
Top