View Single Post
  #2  
Old January 20th 06, 09:48 AM posted to microsoft.public.outlook.program_forms
Christian Kjær
external usenet poster
 
Posts: 2
Default Outlook form works on 2003 but not on 2000

Thaks for your help it worked.

Kind regards Christian

"Wolfram Jahn" wrote in message
...
Christian Kjær wrote:

Hi all

I have designet an Outlook form in Outlook 2003 and it works very fine.
But when, I send it to my Outlook 2000 user it Only run some of the code.
belov I have postet the VBScript code. Can anybody se, what is wrong?


In 2K3, you use

Item.UserProperties.item("PostnummerTelefonscreeni ng").value

In 2K you have to write

Item.UserProperties.find("PostnummerTelefonscreeni ng").value


You may want to

select case split(outlook.application.version,".")(0)
case 9
'2K stuff
case 11
'2K3 stuff
end select


You may further want to encapsulate this code so that you can write

p = getUserProperty(item,property)
setUserProperty item, property, value


HTH, Wolfram



Ads