Please support our VB.NET advertiser: Programming Forums
![]() |
•
•
•
•
Hi there,
Does anyone knows ho to create an appointment in outlook using VB.net ?
thanks :rolleyes:
Dim objOutlook As Outlook.Application
objOutlook = New Outlook.Application()
Dim objNS As Outlook.NameSpace = objOutlook.Session
'---------Write to Shared calendar-----------------
Dim objFolder As Outlook.MAPIFolder = objNS.Folders.Item("Public Folders")
objFolder = objFolder.Folders.Item("All Public Folders")
objFolder = objFolder.Folders.Item("Boss Calendar")
'=========Add appointment to calendar=================
Dim objApp As Outlook.AppointmentItem
objApp = objFolder.Items(Outlook.OlItemType.olAppointmentItem)
With objApp
.Subject = (" Test appointment")
.Location = "Main Office"
.Body = ("test appointment")
.Start = ("1:30pm 11/21/2007")
.Save()
End With
'\\\\\\\\\
Last edited by slavedogg : Nov 28th, 2007 at 2:26 pm. Reason: sloppy
_______
|} {} gg|
----------
|} {} gg|
----------
![]() |
Similar Threads
Other Threads in the VB.NET Forum
- Synchronize Outlook with Entourage (Mac Software)
- How to create a login page using ASp.net 2.0 c# (ASP.NET)
- Access your Outlook application using VB.NET? (VB.NET)
- create dynamic reports in asp.net (ASP.NET)
- create an app drag & drop controls in asp.net (ASP.NET)
- How to send an apointment from PPC app. to Outlook (VB.NET)
- problem using mapi and outlook 2000 in .net (VB.NET)
- problem with mapi and outlook 2000 using .net (Community Introductions)
Other Threads in the VB.NET Forum
- Previous Thread: Modifying a current file.
- Next Thread: create .exe file that receives 1 parameter
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode