locked
.Start within AppointmentItem RRS feed

  • Question

  • Hello,

    I am creating a form within word, using a macro button to send the form to my calendar as an appointment. I have been able to get the calendar to work but I can not get the start date to appear as what the user has typed in. In the text form field I have set it as 'date' and set the format to dd/mm/yy. I have also set the time label as a text form field - using 'date' and hh:mm format.

    Dim olApp As Outlook.Application
    Dim myItem As AppointmentItem


    Set olApp = New Outlook.Application
    Set myItem = olApp.CreateItem(olAppointmentItem)

    If ActiveDocument.FormFields("meetingdate").TextInput <> "" Then
     meetingdate = ActiveDocument.FormFields("meetingdate").Result
    End If

    If ActiveDocument.FormFields("starttime").TextInput <> "" Then
     starttime = ActiveDocument.FormFields("starttime").Result
    End If


    With myItem
     .Start = ?

              

    .ResponseRequested = False
    .Subject = itemrequired
    .Duration = "30"
    .ReminderSet = True

    .save

    thanks.


    • Edited by Yellow4life Tuesday, February 16, 2016 12:59 PM edit code
    • Moved by Just Karl Wednesday, February 17, 2016 8:29 PM Looking for the correct forum.
    Tuesday, February 16, 2016 12:25 PM

Answers

All replies

  • Hello,

    The 'Academic Initiatives - General Discussions' forum is for any posts not covered under any of the other forums as related to Microsoft's Academic Initiatives.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, February 17, 2016 8:28 PM
  • Hello,

    You might ask in the Microsoft Office for Developers forums.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, February 17, 2016 8:29 PM