V
Vbasiccode
I have created a new Region (seperate type). I now want ot communicate with
that form from an outside windows application. when i run the code shown
below, i get an error because it can't find the user properties that the code
is requesting. However if i open up the Account form then the actual new
region form, then suddenly all the user properties are available.
Is their a way to communicate with the regions (seperate type) User
properties (UDFs) with out having to open the matching form in out look
itself?
Dim app As New Outlk.Application
Dim olns As Outlk.NameSpace = app.GetNamespace("MAPI")
Dim olFolders As Outlk.Folders = olns.Session.Folders
Dim RootFolder As Outlk.Folder = olFolders("Business Contact Manager")
Dim AccountsFldr As Outlk.Folder = RootFolder.Folders("Accounts")
Dim newAccount As Outlk.ContactItem = Nothing
Dim userProp As Outlk.UserProperty = Nothing
newAccount = AccountsFldr.Items.Find("[Subject]='Account2 Name'")
'the error occures on this line because it cannot find the UDF Called
Carrier
userProp = newAccount.UserProperties.Find("Carrier")
that form from an outside windows application. when i run the code shown
below, i get an error because it can't find the user properties that the code
is requesting. However if i open up the Account form then the actual new
region form, then suddenly all the user properties are available.
Is their a way to communicate with the regions (seperate type) User
properties (UDFs) with out having to open the matching form in out look
itself?
Dim app As New Outlk.Application
Dim olns As Outlk.NameSpace = app.GetNamespace("MAPI")
Dim olFolders As Outlk.Folders = olns.Session.Folders
Dim RootFolder As Outlk.Folder = olFolders("Business Contact Manager")
Dim AccountsFldr As Outlk.Folder = RootFolder.Folders("Accounts")
Dim newAccount As Outlk.ContactItem = Nothing
Dim userProp As Outlk.UserProperty = Nothing
newAccount = AccountsFldr.Items.Find("[Subject]='Account2 Name'")
'the error occures on this line because it cannot find the UDF Called
Carrier
userProp = newAccount.UserProperties.Find("Carrier")