V
Vivian Carroll
Word 2002:
When I insert a cross-reference for a bookmark, I am
unable to programically get the cross-ref dialog box to
change from bookmark to numbered item. Whatever entry is
previously done manually by the user (e.g. bookmark), stays in the cross-
ref dialog box until manually changed to something else.
My goal is to have the cross-reference dialog box open defaulting to
"Numbered Item" and "Paragraph Number" and then have the user select which
paragraph to reference.
This is my code:
With Dialogs(wdDialogInsertCrossReference)
.ReferenceType = wdRefTypeNumberedItem
.ReferenceKind = wdNumberFullContext
.InsertAsHyperlink = True
.InsertPosition = False
If .Display = -1 Then
.Execute
Else
Exit Sub
End If
End With
TIA, Vivian
When I insert a cross-reference for a bookmark, I am
unable to programically get the cross-ref dialog box to
change from bookmark to numbered item. Whatever entry is
previously done manually by the user (e.g. bookmark), stays in the cross-
ref dialog box until manually changed to something else.
My goal is to have the cross-reference dialog box open defaulting to
"Numbered Item" and "Paragraph Number" and then have the user select which
paragraph to reference.
This is my code:
With Dialogs(wdDialogInsertCrossReference)
.ReferenceType = wdRefTypeNumberedItem
.ReferenceKind = wdNumberFullContext
.InsertAsHyperlink = True
.InsertPosition = False
If .Display = -1 Then
.Execute
Else
Exit Sub
End If
End With
TIA, Vivian