-
Microsoft Outlook
hi guys..
i need some help....
is there a way to automatically save info in Microsoft Outlook TASKS using vb??
this is what im trying to do..the vb application will save customers birthdate in database..after saving it...will automatically save new TASK in Microsoft Outlook (to remind the user to greet the customer on his birthday)...is this possible???
tnx in advance
:)
-
Yes.
Problem is how.
Now if you know how to do it manually do this first then see if there are corresponding objects which can be set to do it in code. I was going to suggest 'record macro' but outlook 2k here doesn't have it. If it does, use it and look at the code.
I am guessing that you need to set up a task to notify the user, so read up on the helpfiles sections on tasks.
Vince
-
Got It!!!!
hi vince...
thanks for d reply...
:)
...really appreciate it...
nywys...ive got it working...code is quite simple but is sure does work...
Dim olApp As New Outlook.Application
Dim olTask As Outlook.TaskItem
Private Sub Command1_Click()
Set olApp = CreateObject("Outlook.Application")
Set olTask = olApp.CreateItem(olTaskItem)
With olTask
.StartDate = "04/16/02"
.Subject = "Hello"
.Body = "Please remind this person blah...blah..."
.DueDate = "04/16/02"
.Save
End With
End Sub
'**********K H A N N*******************
who would ever thought a girl like me could do such thing huh??...:)