ID Property Example

This example displays the built-in caption label names and ID values.

For Each cl In CaptionLabels
    If cl.BuiltIn = True Then MsgBox cl.Name & " " & cl.ID
Next cl

This example sets the ID of current selection to "target". The selection will be the target of a hyperlink in the same document defined as <A HREF="#target">History</A>.

Selection.Range.ID = "target"

This example formats the selection with the Icelandic proofing tools language.

Selection.LanguageID = Languages("Icelandic").ID