Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / April 2006

Tip: Looking for answers? Try searching our database.

user-defined field in Outlook Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AC92 - 10 Apr 2006 04:02 GMT
When I run my code below it always shows up that the "ActivityID
Doesn't Exist" even after I run this multiple times.  Does anyone see a
problem with why my myUserProperty is always nothing?

   Dim myOlApp As New Outlook.Application
           Dim myItem As Outlook.AppointmentItem
           Dim myUserProperty As Outlook.UserProperty
           Dim myAppt As Outlook.AppointmentItem
           myAppt = currentApptsModified.GetFirst
           myUserProperty = myAppt.UserProperties("AcitivityID")
           If Not myUserProperty Is Nothing Then
               MsgBox("ActivityID Exists")
           Else
               myItem =
myOlApp.CreateItem(Outlook.OlItemType.olAppointmentItem)
               myUserProperty =
myItem.UserProperties.Add("AcitivityID",
Outlook.OlUserPropertyType.olNumber)
               MsgBox("ActivityID Doesn't Exist")
           End If
Sue Mosher [MVP-Outlook] - 10 Apr 2006 15:11 GMT
Do you have a myAppt.Save statement somewhere else to persist your changes to the item?

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> When I run my code below it always shows up that the "ActivityID
> Doesn't Exist" even after I run this multiple times.  Does anyone see a
[quoted text clipped - 16 lines]
>                MsgBox("ActivityID Doesn't Exist")
>            End If

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.