Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB: How to create a calendar item

Status
Not open for further replies.

pharcyder

Programmer
Mar 12, 2002
66
DE
Hello, i'm trying to add a calendar item via Visual Basic.

Here's the code i'm using (so far):
[tt]
Sub Notes()

Dim session As Object
Dim db As Object
Dim doc As Object
Set session = CreateObject("Notes.NotesSession")
Set db = session.GETDATABASE("", "C:\notes\test.nsf")
Set doc = db.CREATEDOCUMENT()
doc.Form = "memo" 'What else can i use here ?
doc.Subject = "Subjekt"
doc.Body = "Bodytext"
'doc.sendto = "test@tes.com" 'This is for mails
Call doc.Save(True, False)


Set doc = Nothing
Set db = Nothing
Set session = Nothing
End Sub
[/tt]

Now this code creates a new memo in my draft folder. But how can I create a calendar entry (and what properties can I set) via VB ??

Thanks in advance,
Jens K.
 
Okay, I changed the [tt]doc.Form[/tt] to "Appointment",
now it's a calendar item. But how can I save this item in the calendar ?
Now its just being stored in the drafts folder...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top