Hyperlink.PageID property (Publisher)
Returns or sets a Long indicating the page in the publication that is the destination for the specified hyperlink. Read/write.
Syntax
expression.PageID
expression A variable that represents a Hyperlink object.
Example
The following example reports what page the first hyperlink in the active publication is linked to.
Dim hypTemp As Hyperlink
Dim lngID As Long
Dim strPage As String
Set hypTemp = ActiveDocument.Pages(1).Shapes(1).Hyperlink
lngID = hypTemp.PageID
strPage = ActiveDocument.Pages.FindByPageID(PageID:=lngID).PageNumber
MsgBox "This hyperlink goes to the page " & strPage & "."
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.