![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#2
|
|||
|
|||
![]()
You'll want to wipe out the variable declarations and data assignments, but
the code below will create an appointment. You will most likely need to change the line that says "Set appt = " to find the correct calendar folder you want to add the appointment to. If you need further help, post back. Dim appt As Outlook.AppointmentItem Dim Location As String Dim Time As Variant Dim StartDate As Variant Dim Subject As String Dim Notes As String Dim Category As String Location = "Somewhere" Subject = "My Subject" Notes = "Some notes..." StartDate = #1/31/2006# Time = "1:05 pm" Category = "Business, Competition, Favorites" Set appt = Session.Folders.Item("Personal Folders").Folders.Item("Calendar").Items.Add appt.Location = Location appt.Subject = Subject appt.Body = Notes appt.Start = Format$(StartDate, "mm/dd/yy") & " " & Format$(Time, "hh:MM:ss am/pm") appt.Categories = Category appt.Save Set appt = Nothing Jay Taplin [MCP - VB] |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
user cannot view calendar appointments on his calendar exsvr | Jeffieboy | Outlook - Calandaring | 0 | February 6th 06 09:26 PM |
Importing Palm Dates into Outlook Calendar | Christian R Nash | Outlook - General Queries | 2 | February 5th 06 02:37 AM |
calendar appointments to show on delegate's calendar | jturner_1968 | Outlook - Calandaring | 0 | January 25th 06 03:06 PM |
Cannot programmatically open custom message in custom form | ms | Outlook - Using Forms | 1 | January 20th 06 03:01 PM |
Outlook 2003 Instance Won't Close If Opened Programmatically | Michael Bauer | Outlook and VBA | 3 | January 11th 06 03:19 PM |