Results 1 to 6 of 6

Thread: outlook Calendar

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    120

    outlook Calendar

    hello !
    i just created an appointment in outlook with VB using outlook 9 object library.
    And now i want to know what are the dates that the Appointment is taking place .

    is there any method in outlook that will show me that ?

    10x
    shachar shaty

  2. #2
    Lively Member
    Join Date
    Jan 2002
    Location
    Wiltshire/Somerset
    Posts
    68
    Hi there

    I don't have an answer to your question () but wanted to know if you could share how you managed to add the appointment?

    I'm looking into developing an add-in that I want to use with Outlook so this could be a goos starting point for me.

    Cheers


    Wayne

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try this
    VB Code:
    1. Private Sub CreateAppointment(StartTime As Date, Endtime As Date, Subject As String, Location As String)
    2.     'Create a reference to a Appointment item
    3.     Dim e1 As Outlook.AppointmentItem
    4.     'Create a new appointment item
    5.     Set e1 = o1.CreateItem(olAppointmentItem)
    6.     'Set a few of the many possible appointment parameters.
    7.     e1.Start = StartTime
    8.     e1.End = Endtime
    9.     e1.Subject = Subject
    10.     e1.Location = Location
    11.     'If you want to set a list of recipients, do it like this
    12.     'e1.Recipients.Add Name
    13.     'Commit the appointment
    14.     e1.Send
    15.     'Free up the space
    16.     Set e1 = Nothing
    17. End Sub

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    120
    If You Want Something That Has RecurrencePattern
    Tell Me Will Send You A Great Code
    shachar shaty

  5. #5
    Junior Member rjhare's Avatar
    Join Date
    Sep 2001
    Location
    Peterborough, UK
    Posts
    31
    You could set the date using the following code, perhaps?

    With MyAppt
    .Start = Now() & "09:30:00" 'Set the date and time of the appointment
    .Duration = 1 'Set the length in minutes of the appointment
    end with


    Hope this is what you were asking , if not let me know

    Good luck

    Richard

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    120
    If You Want Something That Has RecurrencePattern
    Tell Me Will Send You A Great Code
    shachar shaty

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