Option Explicit
Sub Main
Dim intReturn As Integer
Dim varDocument As Variant
varDocument = "c:\mytest.txt"
intReturn = Action2.OpenDocument (varDocument)
If intReturn = 0 Then
MsgBox "Failure"
MsgBox( Action2.GetLastError )
ElseIf intReturn = 1 Then
MsgBox "Success"
End If
End Sub