Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - Using Contacts (http://www.outlookbanter.com/outlook-using-contacts/)
-   -   Creating new appointment & setting its properties (http://www.outlookbanter.com/outlook-using-contacts/3303-creating-new-appointment-setting-its.html)

dim4x4 February 1st 06 08:05 AM

Creating new appointment & setting its properties
 
Hello everybody!

This is my first message here and first macro I'm trying to do in
Outlook (I did some for Excel before, albeit with macro recorder =)

Basically, I'm creating a new appointment (the code was borrowed from a
message from this group or some forum). Below is part of the code and 2
things I'm struggling to do.

With objAppointment
.Subject = "Call "
.Start = ' PROBLEM 1: Here I want to put a time of a current
selection in a daily view of the calendar (don't know how to do it)
.Duration = 5
.ReminderMinutesBeforeStart = 0
.Save
.Display
End With

PROBLEM 2: When appointment is created and opened I was the cursor to
be in a subject line after the word "Call ", so that I can finish
typing the subject, eg. "Call Bill Gates" =)

Would appreciate any advise. Thank you!


dim4x4 February 1st 06 08:07 AM

Creating new appointment & setting its properties
 
Oops, should have posted this to microsoft.public.outlook.program_vba

Sorry!


Brian Tillman February 1st 06 06:10 PM

Creating new appointment & setting its properties
 
dim4x4 wrote:

This is my first message here and first macro I'm trying to do in
Outlook (I did some for Excel before, albeit with macro recorder =)


Programming questions are more appropriately asked in one of the programming
newsgroups, like
news://msnews.microsoft.com/microsof...ok.program_vba
--
Brian Tillman



All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com