Altova StyleVision 2024 Enterprise Edition

Method: Goto (eKind as SPYAuthenticElementKind, nCount as Long, eFrom as SPYAuthenticDocumentPosition) as AuthenticRange



Retrieve a range object that points to the beginning of the nCount element of type eKind. The start position is defined by the parameter eFrom. Use positive values for nCount to navigate to the document end. Use negative values to navigate towards the beginning of the document.




The authentic view object is no longer valid.


Target lies after end of document.


Target lies before beginning of document.


Invalid element kind specified.

The document position to start from is not one of spyAuthenticDocumentBegin or spyAuthenticDocumentEnd.

Invalid address for the return parameter was specified.



' ---------------------------------------

' Scripting environment - VBScript

' ---------------------------------------

Dim objAuthenticView

' we assume that the active document is open in authentic view mode

Set objAuthenticView = Application.ActiveDocument.AuthenticView


On Error Resume Next

Dim objRange

' goto beginning of first table in document

Set objRange = objAuthenticView.Goto (spyAuthenticTable, 1, spyAuthenticDocumentBegin)

If (Err.number = 0) Then



 MsgBox "No table found in document"

End If

© 2018-2024 Altova GmbH