LinkCheck is a Word VBA macro that validates all hyperlinks in a Word document, including those in footnotes. It checks each unique URL only once, applies results to all instances, and generates a detailed report.
- Deduplication: Avoids redundant checks by validating unique URLs only.
- HEAD-first optimization: Uses HTTP HEAD requests for faster validation.
- Color-coded results:
- ✅ Green: Valid link
⚠️ Yellow: Failed check or error- ❌ Red: Invalid symbol detected
- Context snippets: Shows surrounding text for each link.
- Performance tuning:
- Adjustable timeouts
- Rate limiting between requests
- Disables Word features during execution for speed
- Abort option: Press
ESCto cancel validation mid-run.
- Collects all hyperlinks from the main body and footnotes.
- Normalizes URLs and removes duplicates.
- Validates each unique URL using WinHTTP.
- Generates a new Word document with:
- A table of results (or plain text if table creation fails)
- Display text, URL, context, and status.
- Microsoft Word (VBA-enabled)
- Windows (uses
WinHttp.WinHttpRequestandkernel32API) - Macro security settings allowing execution
- Open Word and press
Alt + F11to open the VBA editor. - Insert a new module and paste the code from
LinkCheck.txt. - Save and close the editor.
- Open the document you want to check.
- Run
ValidateHyperlinksfrom the Macros menu (Alt + F8). - Wait for the process to complete. A new document will display the results.
MIT License – Feel free to use, modify, and share.