AnnotationRefFromSel$()

Syntax

AnnotationRefFromSel$()

Remarks

Returns the annotation mark associated with the insertion point or the beginning of the selection. The insertion point must be immediately before an annotation mark in the document window or within an annotation in the annotation pane; otherwise, the characters "[0]" are returned.

Note that because Word treats an entire annotation mark as an individual character, you cannot return the characters within an annotation mark using the Selection$() function.

Example

This example goes to the next annotation mark and sets the variable mark$ to the characters in the annotation mark:


EditGoTo "a"
mark$ = AnnotationRefFromSel$()

See Also

EditGoTo, GoToAnnotationScope, GoToNextItem, GoToPreviousItem, ShowAnnotationBy