ฉันจะขอบคุณท่านจากใจเลยถ้าใครบางคนสามารถช่วยฉันและบ่งบอกสิ่งที่ควรจะเปลี่ยนแปลงไปอย่างรหัสทางด้านล่า(ฉันเจอมัน www.extendoffice.com)เพื่อเตรียมเรื่องนี้ไปบอเลือกส่วนหนึ่งของข้อความ(ไม่ต้องทำงานทั่วทั้งเอกสาร).
รหัสคือ extracting hyperlinks จากหนึ่งคำหมอคนอื่น
Sub HyperlinksExtract()
Dim oLink As Hyperlink
Dim docCurrent As Document 'current document
Dim docNew As Document 'new document
Dim rngStory As StoryRanges
Set docCurrent = ActiveDocument
Set docNew = Documents.Add
For Each oLink In docCurrent.Hyperlinks
oLink.range.Copy
docNew.Activate
Selection.Paste
Selection.TypeParagraph
Next
Set docNew = Nothing
Set docCurrent = Nothing
End Sub