Announcement

Collapse
No announcement yet.

Scripting for Outlook

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripting for Outlook

    Hi all

    Does anyone know of a way to script Outlook jobs? For example I want to be able to run a script that will copy this months calendar items from a public folder calendar to my own.

    Any ideas welcome

    Thanks

    Chris

    EDIT: Found this in my Outlook 2000 Programming Bible book (We have 2003 now btw):

    Code:
    Dim ns As NameSpace
    Dim ofTasks As Outlook.MAPIFolder
    Dim ofBackup As Outlook.MAPIFolder
    Dim oiTask As TaskItem
    Dim oiBackup As TaskItem
    Dim counter As Integer
    Set ns = Application.GetNameSpace(“MAPI”)
    Set ofTasks = ns.GetDefaultFolder(olFolderTasks)
    Set ofBackup = ns.GetDefaultFolder(olFolderTasks). _
    Folders.Item(“Backup”)
    
    For counter = 1 To ofTasks.Items.Count
      If ofTasks.Items.Item(counter).Class = olTask Then
        Set oiTask = ofTasks.Items.Item(counter)
        Set oiBackup = oiTask.Copy
        oiTask.Move ofBackup
      End If
    Next counter
    Its a start i guess
    Last edited by tonyyeb; 18th November 2005, 14:53.
    Server 2000 MCP
    Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

    ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

  • #2
    Re: Scripting for Outlook

    You may want to have a look here m8

    http://www.slipstick.com/

    Comment


    • #3
      Re: Scripting for Outlook

      ** SHAMELESS BUMP **

      Anyone got any other ideas? I'm really stuck for starting points on this.

      Thanks in advance

      EDIT:

      Found a starting point! http://www.outlookcode.com/

      Now rumaging around to find something to get me going!
      Last edited by tonyyeb; 25th November 2005, 16:52.
      Server 2000 MCP
      Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment

      Working...
      X