Link to home
Start Free TrialLog in
Avatar of Shiva-Kumar
Shiva-Kumar

asked on

VBScript to create outlook appointment

Hi,

I have a following vbscript which creates the outlook appointments at the specified time and date.

How do I add the time zone to it so that the appointment gets created based on the specified time zone.

Thanks
Dim objOL   'As Outlook.Application
    Dim objAppt 'As Outlook.AppointmentItem
    Const olAppointmentItem = 1
    Const olMeeting = 1
    
    Set objOL = CreateObject("Outlook.Application")
    Set objAppt = objOL.CreateItem(olAppointmentItem)
	
    With objAppt
        .Subject = "Test"
	.Body = "Test"
        .Start = ("04/9/2010 8:00 AM")
	.End = DateAdd("h", 1, .Start)
	       
        ' make it a meeting request
        .MeetingStatus = olMeeting
        .RequiredAttendees = "abc@xyz.com"
        .Send
    End With
    
    Set objAppt = Nothing
    Set objOL = Nothing

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shiva-Kumar
Shiva-Kumar

ASKER

True, but what i am looking for is a solution to specify the time zone while sending the request.

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank u
Can someone please explain the VBscript Code on how to put Skype, Teams and a normal meeting in Select Cases to send out the meeting requests to another user