Outlook.TaskItem 
Author Message
 Outlook.TaskItem

I am using the Outlook Object in a VB Component. I access this component
through ASP.
It is working well.  I would like to place a hyperlink within the Task (so
users can jump straight to the relevant page on our intranet), is this
possible.
Thanks in advance.
STRoPS

'my code -------------------------------------
Public Function AddTask(ByVal vTo As String, ByVal vSubject As String, ByVal
vBody As String) As String
On Error Resume Next
         Dim appOutLook As Outlook.Application
         Dim taskOutLook As Outlook.TaskItem
         Set appOutLook = CreateObject("Outlook.Application")
         Set taskOutLook = appOutLook.CreateItem(olTaskItem)

          taskOutLook.Subject = vSubject
          taskOutLook.Body = vBody
          taskOutLook.ReminderSet = True
          taskOutLook.ReminderTime = DateAdd("n", 2, Now)  ' Set to remind
us 2
                                                ' minutes from now.
          taskOutLook.DueDate = DateAdd("n", 5, Now)       ' Set the due
date to
                                                ' 5 minutes from now.
          taskOutLook.ReminderPlaySound = True
           'add the path to a .wav file on your computer.
          taskOutLook.ReminderSoundFile = "C:\Program Files\Microsoft
Office\Office\REMINDER.WAV"
          taskOutLook.Recipients.Add vTo
          taskOutLook.Assign
          taskOutLook.Send
          taskOutLook.Save

    If Err.Number > 1 Then
        AddTask = "Failed <p>" & Err.Number & " - " & Err.Description
    Else
        AddTask = "Sent"
    End If
End Function



Sat, 17 Jan 2004 22:58:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Outlook TaskItem and ReminderTime?

2. How to send a TaskItem to Public Folder

3. Add custom button to TaskItem via JScript?

4. Using GetOccurrence with TaskItems

5. How do you add Contacts to a TaskItem with VBA

6. Howto format .Body of .TaskItem

7. Rich content in a TaskItem?

8. How to check if taskitem is sent

9. taskitems moved to another folder can not be deleted

10. Application-defined or object-defined error when saving taskitem

11. Send a Taskitem

12. Reminder on public folder taskItem

 

 
Powered by phpBB® Forum Software