W
wizeguy
I'm storing a unique number with a journal item. I want to be able to
search by that number and modify that entry later on. So far I can get
it stored fine by doing this.
Store info
=============
<snip>
Dim MyEntryID As Outlook.UserProperty
Set MyEntryID = MyOlItem.UserProperties.Add("EntryID", olText)
MyEntryID.Value = MyTime
<snip>
I can see the values stored in outlook but I'm unable to find the entry
thru code?
Look for entry
===============
<snip>
Dim objNameSpace As Outlook.NameSpace
Dim objJournals As Outlook.MAPIFolder
Dim objJournal As Outlook.UserPropert
Set objNameSpace = MyOlApp.GetNamespace("MAPI")
Set objJournals = objNameSpace.GetDefaultFolder(olFolderJournal)
Thanks.
search by that number and modify that entry later on. So far I can get
it stored fine by doing this.
Store info
=============
<snip>
Dim MyEntryID As Outlook.UserProperty
Set MyEntryID = MyOlItem.UserProperties.Add("EntryID", olText)
MyEntryID.Value = MyTime
<snip>
I can see the values stored in outlook but I'm unable to find the entry
thru code?
Look for entry
===============
<snip>
Dim objNameSpace As Outlook.NameSpace
Dim objJournals As Outlook.MAPIFolder
Dim objJournal As Outlook.UserPropert
Set objNameSpace = MyOlApp.GetNamespace("MAPI")
Set objJournals = objNameSpace.GetDefaultFolder(olFolderJournal)
<snip>This line needs help > Set objJournal = objJournals.UserProperties.Find("EntryID").Value = MyTime
Thanks.