获取所有超链接的列表?

Wil*_*and 6 microsoft-office

是否有某种方法可以获得 Microsoft Office 2010 文档中所有超链接的列表?

我正在尝试检查大量大型文档(一袋 Word、Excel 和 PowerPoint 文档)是否有损坏的链接,我宁愿不必阅读每个文档的每一行来验证我是否有所有链接。

Unn*_*nan 8

对于 MS WORD,

 Press Alt + F9 to display the fields

Ctrl + F to open the search box

Search: ^d hyperlink

Check "Highlight all items found ..."

Click on the Find All button

Close the dialog

Ctrl + C to copy everything that is highlighted

Open a new document and paste.
Run Code Online (Sandbox Code Playgroud)

对于 Excel,

Close all workbooks except the one you want to find the links in.
On the Edit menu, click Find.
Click Options.
In the Find what box, enter [.
In the Within box, click Workbook.
In the Look In box, click Formulas.
Click Find All.
In the box at the bottom, look in the Formula column for formulas that contain [.
To select the cell with a link, select the row in the box at the bottom.
Links are also commonly used in names, text boxes, or chart titles.
Run Code Online (Sandbox Code Playgroud)