다음 매크로 코드가 나를 위해 작동하는 것 같습니다.
Sub Add_Hyperlinks_Bibliography()
On Error Resume Next
Set rngSearch = Selection
For I = 1 To ActiveDocument.Bibliography.Sources.Count
Selection.HomeKey Unit:=wdStory
strStyle = "Intensieve benadrukking"
strSearch = ActiveDocument.Bibliography.Sources.Item(I).Field("URL")
strAddress = strSearch
With rngSearch.Find
Do While .Execute(findText:=strSearch, MatchCase:=False, MatchWholeWord:=False) = True
With rngSearch 'we will work with what is found as it will be the selection
ActiveDocument.Hyperlinks.Add Anchor:=rngSearch, Address:=strAddress
.Style = ActiveDocument.Styles(strStyle) 'throw the style on it after the link
End With
rngSearch.Collapse Direction:=wdCollapseEnd
'keep it moving
Loop
End With
Next I
On Error GoTo 0
Set rngSearch = Nothing
End Sub
분명히 서지 필드를 새로 고칠 때마다이 코드를 실행해야합니다.