Hi,
I recorded this macro in Word 2010 (intending to later modify it). Note, when I recorded the macro, Word inserted a figure reference, which is what I wanted it to do.
Sub Macro3()
Selection.InsertCrossReference ReferenceType:="Figure", ReferenceKind:= _
wdOnlyLabelAndNumber, ReferenceItem:="1", InsertAsHyperlink:=True, _
IncludePosition:=False, SeparateNumbers:=False, SeparatorString:=" "
End Sub
When I tried to run the macro, I received the error:
Run-time error '4198':
Command failed
I think I disabled most of the security settings for running macros (especially my own!), but still cannot get this little snippet to run. Any ideas?
Thanks, Bruce
I recorded this macro in Word 2010 (intending to later modify it). Note, when I recorded the macro, Word inserted a figure reference, which is what I wanted it to do.
Sub Macro3()
Selection.InsertCrossReference ReferenceType:="Figure", ReferenceKind:= _
wdOnlyLabelAndNumber, ReferenceItem:="1", InsertAsHyperlink:=True, _
IncludePosition:=False, SeparateNumbers:=False, SeparatorString:=" "
End Sub
When I tried to run the macro, I received the error:
Run-time error '4198':
Command failed
I think I disabled most of the security settings for running macros (especially my own!), but still cannot get this little snippet to run. Any ideas?
Thanks, Bruce