VBScript to create outlook appointment


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.

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"
    End With
    Set objAppt = Nothing
    Set objOL = Nothing

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Patrick MatthewsCommented:

The appointment will be created using whatever time zone that user has indicated in the Outlook calendar options is his/her primary time zone.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shiva-KumarAuthor Commented:
True, but what i am looking for is a solution to specify the time zone while sending the request.

Patrick MatthewsCommented:
There is no way to do that directly.  What you could do is adjust the start time of the appointment to reflect the time zone offset relative to the user's normal time zone.  That, however, is not necessarily straightforward because then you would have to take Daylight Saving Time / Summer Time into account.
Shiva-KumarAuthor Commented:
Thank u
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.