CT Witter
MrExcel MVP
- Joined
- Jul 7, 2002
- Messages
- 1,212
I pulled the following from http://www.developerfusion.co.uk/show/135/
However, it errors out at line:
domSession.Initialize
with error Notes error: Could not open ID file . I have a referrence to Lotus Domino Objects and my R5 version is 5.0.8 June 18, 2001.
Anyone have any experience with Lotus Notes?
Thanks,
CT
Code:
Dim domSession As New Domino.NotesSession
Dim domDatabase As New Domino.NotesDatabase
Dim domDocument As NotesDocument
Dim domViewEntry As NotesViewEntry
Dim domView As NotesView
Dim domViewNav As NotesViewNavigator
Dim strName As String
domSession.Initialize
Set domDatabase = domSession.GetDatabase("", _
"names.nsf")
Set domView = domDatabase.GetView("Contacts")
' This view contains the list of names
Set domViewNav = domView.CreateViewNav
Set domViewEntry = domViewNav.GetFirstDocument()
Set domDocument = domViewEntry.Document
strName = domDocument.GetItemValue("FullName")(0)
MsgBox strName
Set domViewEntry = Nothing
Set domViewNav = Nothing
Set domView = Nothing
Set domDocument = Nothing
Set domDatabase = Nothing
Set domSession = Nothing
However, it errors out at line:
domSession.Initialize
with error Notes error: Could not open ID file . I have a referrence to Lotus Domino Objects and my R5 version is 5.0.8 June 18, 2001.
Anyone have any experience with Lotus Notes?
Thanks,
CT