Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Accessing Outlook custom task form data

Accessing Outlook custom task form data

Scheduled Pinned Locked Moved Visual Basic
tutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    penguin5000
    wrote on last edited by
    #1

    Hello all, I'm using Outlook 2000 and I'm trying to access data held on a customised Outlook task form held in a public folder. I'm using the following code to get at what I need, and can see certain values via objTask, but I can't see where I get at other 'fields' used on the form. One of the fields, for example, is called "CC Ref", but I can't find where I can get at it.

    Dim objOutlook As Outlook._Application
    objOutlook = New Outlook.Application()
    Dim objNS As Outlook._NameSpace = objOutlook.Session
    Dim oAllPublicFolders As Outlook.MAPIFolder
    Dim oPublicFolders As Outlook.MAPIFolder
    Dim objCodeChangeRequests As Outlook.MAPIFolder

    oPublicFolders = objNS.Folders.Item("Public Folders")
    oAllPublicFolders = oPublicFolders.Folders.Item("All Public Folders")
    objCodeChangeRequests = oAllPublicFolders.Folders.Item("Code Change Requests")
    Dim objItems As Outlook.Items = objCodeChangeRequests.Items
    Dim objTask As Outlook._TaskItem
    objTask = objItems.GetFirst

    Thanks in advance!

    P 1 Reply Last reply
    0
    • P penguin5000

      Hello all, I'm using Outlook 2000 and I'm trying to access data held on a customised Outlook task form held in a public folder. I'm using the following code to get at what I need, and can see certain values via objTask, but I can't see where I get at other 'fields' used on the form. One of the fields, for example, is called "CC Ref", but I can't find where I can get at it.

      Dim objOutlook As Outlook._Application
      objOutlook = New Outlook.Application()
      Dim objNS As Outlook._NameSpace = objOutlook.Session
      Dim oAllPublicFolders As Outlook.MAPIFolder
      Dim oPublicFolders As Outlook.MAPIFolder
      Dim objCodeChangeRequests As Outlook.MAPIFolder

      oPublicFolders = objNS.Folders.Item("Public Folders")
      oAllPublicFolders = oPublicFolders.Folders.Item("All Public Folders")
      objCodeChangeRequests = oAllPublicFolders.Folders.Item("Code Change Requests")
      Dim objItems As Outlook.Items = objCodeChangeRequests.Items
      Dim objTask As Outlook._TaskItem
      objTask = objItems.GetFirst

      Thanks in advance!

      P Offline
      P Offline
      penguin5000
      wrote on last edited by
      #2

      Found it ...

      Dim objUP As Outlook.UserProperty
      objUP = objTask.UserProperties.Item("CC Ref")

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups