New NotesSession in VBA Office 2003

In MS Word 2003 I tried to run quite old VBA code, which works perfectly on all other versions of MS Office. I’ve got this error immediately:

ActiveX component can’t create object

in line:

Set session = New NotesSession

what can it be? nothong changes except Office version and this terrible error appeared.

Subject: See Designer Help

I suggest looking in Designer Help:

Index > Session class > LotusScript class > NotesSession class.

On that page, look at “To access the current session through COM…” and “To access the current session through OLE…”

Subject: Designer Help isn’t helpful here.

I’m having the same problem, only I’m using Word 97 and as I’m sure the original poster did, I followed the instructions from designer help.

I get the error “Invalid use of New keyword” when I use the syntax

Dim nsess As New NOTESSESSION

I get the error “Type mismatch” when I use the syntax

Dim nsess As NOTESSESSION

Set nsess = CreateObject(“Lotus.NotesSession”)

Any ideas, besides what’s already in the designer help database?

I’ve done this sort of thing successfully, in R5, but now it doesn’t seem to work…

Subject: RE: Designer Help isn’t helpful here.

Have you added a library reference to the Lotus Domino Objects? Is nlsxbe.dll properly registered as a COM server on your machine?

Subject: Designer Help isn’t helpful here {resolved for my case}

Yes I had added the library reference, but, as it turns out, the nlsxbe had not been properly registered.

I found the solution from Carl Tyler in another posting:

‘Run “regsvr32 nlsxbe.dll” from inside your Notes/Domino R6 program directory, this will ensure the library is correctly registered.’

Current URL to that posting:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/152a3e984b1bcab585256ce60070cd45?OpenDocument