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!

OpenWithBasicSignon 1

Status
Not open for further replies.

ornel

Technical User
Apr 2, 2003
23
HU
Hi,

I would like to run the following simple macro,
but I got an error message (Error- 438: no such property or method):

Sub Main ()

DIM ObjAuthApp as object
DIM ObjAuthDoc as object

On Error Goto Errhdlr1

'Open Namespace

Set ObjAuthApp = CreateObject("Authenticator2.Application")
Set ObjAuthDoc = ObjAuthApp.Documents.OpenWithBasicSignon ("default", "administrator","","Root User Class")

MsgBox "Namespace opened successfully"

Errhdlr1:

Msgbox "Error - " & Err & ": " & Error$

End Sub


Any idea?
thx
ornel
 
Ornel,

On my machine your script worked well ! I made some samll changes though. To free memory at the end of the script and after your message box you don't want to see the errormessage 0.



Sub Main ()

DIM ObjAuthApp as object
DIM ObjAuthDoc as object

On Error Goto Errhdlr1

'Open Namespace

Set ObjAuthApp = CreateObject("Authenticator2.Application")
Set ObjAuthDoc = ObjAuthApp.Documents.OpenWithBasicSignon ("default", "administrator","","Root User Class")

MsgBox "Namespace opened successfully"
Goto Done

Errhdlr1:

Msgbox "Error - " & Err & ": " & Error$

Done:

'Free up Memory
set ObjAuthApp = Nothing
set ObjAuthDoc = Nothing

End Sub

Good luck!

Christenhusz
 
Hi Christenhusz,

I dont understand it.
I tried to run the your modified macro and it wasnt succesful!
When the macro steps to OpenWithBasicSignon line I got the error message!
Your 2 lines on the end of the macro not change my macro execution.

ornel
 
Does anyone have any new suggestions?

ornel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top