New Calendar Event with preset Attendees

Discussion, questions and support.
Posts: 5
Joined: Tue Apr 18, 2017 5:51 am

New Calendar Event with preset Attendees

PostPosted by jjlarsen » Tue Apr 18, 2017 6:39 pm

Hi,
I'm wondering if FastKeys can create a predetermined calendar event with preset attendees?
Thank you,
Jeff

Site Admin
User avatar
Posts: 628
Joined: Sat Mar 02, 2013 9:02 pm

Re: New Calendar Event with preset Attendees

PostPosted by Marko » Wed Apr 19, 2017 12:00 pm

This works for me on Office 2013:
Code: Select all
calItem:=ComObjCreate("Outlook.Application").CreateItem(1)
calItem.MeetingStatus:=1
calItem.Location:="Location text"
calItem.RequiredAttendees:="James Brown"
calItem.Importance:=0
calItem.Body:="Body text"
calItem.Subject:="Subject text"
calItem.Start:="3/5/2017" . A_Space . "5:00pm"
calItem.Duration:=60
calItem.Display()
; calItem.Save()  ;uncomment to save automatically
calItem:=""

Posts: 5
Joined: Tue Apr 18, 2017 5:51 am

Re: New Calendar Event with preset Attendees

PostPosted by jjlarsen » Wed Apr 19, 2017 8:07 pm

This is great! Thank you for your quick response.

Posts: 5
Joined: Tue Apr 18, 2017 5:51 am

Re: New Calendar Event with preset Attendees

PostPosted by jjlarsen » Thu May 04, 2017 6:46 am

Is there a way for the preset Calendar Event to be set to the current day and time?

Site Admin
User avatar
Posts: 628
Joined: Sat Mar 02, 2013 9:02 pm

Re: New Calendar Event with preset Attendees

PostPosted by Marko » Thu May 04, 2017 7:35 am

if you remove calItem.Start line, the calendar event will be created for the first next time slot.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests