![]() |
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 |
|
#1
|
|||
|
|||
![]()
Could someone please show me or point me to a web site that has an example of
how to create an appointment in my Outlook XP calendar? In my code I already have this information defined: Location as String Time as Varient Start Date as Varient Subject as String Notes as String Category as String Can I create an appointment with this data? thanks, ck |
#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] |
#3
|
|||
|
|||
![]()
Thanks,
One more thing, what is the line of code that will set the remindertime to no reminder? thanks, ck |
#4
|
|||
|
|||
![]()
Just add this line:
appt.ReminderSet = False Jay Taplin [MCP - VB] "Charlie" wrote in message ... Thanks, One more thing, what is the line of code that will set the remindertime to no reminder? thanks, ck |
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 10:26 PM |
Importing Palm Dates into Outlook Calendar | Christian R Nash | Outlook - General Queries | 2 | February 5th 06 03:37 AM |
calendar appointments to show on delegate's calendar | jturner_1968 | Outlook - Calandaring | 0 | January 25th 06 04:06 PM |
Cannot programmatically open custom message in custom form | ms | Outlook - Using Forms | 1 | January 20th 06 04:01 PM |
Outlook 2003 Instance Won't Close If Opened Programmatically | Michael Bauer | Outlook and VBA | 3 | January 11th 06 04:19 PM |