Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    Mar 2004
    Location
    Knoxville, Tennessee, USA
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Insertion of VB6 Textbox Information Into Outlook

    Is it possible to insert information from a VB6 Textbox into an Outlook XP Calendar for a specific day and time? If so, I would greatly appreciate being educated as to how to accomplish it! Thank you!

    Bob

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insertion of VB6 Textbox Information Into Outlook

    You can control Outlook from VB6 using Automation. Set a reference in Project | References... to the Microsoft Outlook 10.0 Object Library. You can then use Outlook VBA. See <post#=274138>post 274138</post#> for an example.

  3. #3
    New Lounger
    Join Date
    Mar 2004
    Location
    Knoxville, Tennessee, USA
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Insertion of VB6 Textbox Information Into Outl

    Hans, please forgive my ignorqnce, but where would the code found in post 274138 be used? Thank you!

    Bob

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insertion of VB6 Textbox Information Into Outl

    Well, you are creating an application in VB6, so you should have some idea where you want to use it. I cannot tell you that.

    (Apart from that, the answer is "in a module")

  5. #5
    New Lounger
    Join Date
    Mar 2004
    Location
    Knoxville, Tennessee, USA
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Insertion of VB6 Textbox Information Into Outl

    Iin the referenced post does MakeAppointmentTest() refer to a command button. All I really want to do is to open a VB6 Form insert the applicable information for an Outlook Appointment. Click a Command Button and have the information inserted into an Outlook Calendar. Does that make sense? I apologize if it does not!

    Thank you!

    Bob

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Insertion of VB6 Textbox Information Into Outl

    MakeAppointmentTest is a general procedure. You could change it to the On Click event procedure for a command button on a form. Say that the command button is named cmdAppointment:

    Private Sub cmdAppointment_Click()
    Dim oOLApp As Outlook.Application
    ...
    ...
    Set oOLApp = Nothing
    End Sub

    In the code in <post#=274,138>post 274,138</post#>, the subject, location, start and duration of the appointment are fixed. In your code, you will want to set one or more of these to values from text boxes on your form. For example, change

    .Location = "Conference Room B"

    to

    .Location = Me.txtLocation

Posting Permissions

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