我将不胜感激,如果有人可以帮我,并说明应该改变在代码如下(我找到它 www.extendoffice.com)来限制这个部分选择的案文(不到工作,整个文件)。
代码是提取超链接从一个字doc到另一个。
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