Results 1 to 3 of 3

Thread: Microsoft Outlook

  1. #1
    khann
    Guest

    Smile 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




  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    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

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3
    khann
    Guest

    Smile 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??...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width