Hyperlink Index
Makes a linked copy of an Excel or Word index or privilege log in which every document ID or file name opens the matching file.
Choose the folder of documents and the index that lists them. The tool looks at every cell of the workbook (or every paragraph of the Word document) and, where the text is the name of a file in the folder, turns it into a hyperlink to that file. Linked cells and text get the usual blue underline; other formatting is kept.
Your index is not changed. A linked copy is written to the run folder, and the report lists every link made.
Use it when
- Serving a list of documents or a privilege log with the documents, so the recipient can click straight through to each one.
- Preparing a tender list, a list of exhibits or a brief index for counsel that opens each document.
- Re-linking an index after the documents have been renumbered or moved: run it again on the new folder.
How to run it
- Choose the folder holding the documents as Input.
- Choose an Output folder.
- Choose the index or privilege log (
.xlsx,.xlsm,.docxor.docm) as Index file. - Set Match: Stem if the index lists IDs without extensions (ABC0001), Exact if it lists full file names.
- Set Link style: Relative if the index will travel with the documents, Absolute if it will be used where the documents are now.
- Click Run, read the notes, then Open report.
- For relative links, copy the linked index from the run's
filesfolder into the root of the documents folder.
Settings
Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help hyperlink-index lists them.
Settings
| Setting | What it does | Type and default |
|---|---|---|
Index file--index-file |
The index or privilege log to link: an Excel (.xlsx) or Word (.docx) file listing document IDs or file names. It is not changed — a linked copy is written to the run folder. Older .xls and .doc files are not accepted; save them in the newer format first. The index can sit inside the documents folder; it is not linked to itself. |
file empty |
Match--match |
Stem: text matches a file name with or without extension (ABC0001 links to ABC0001.pdf). Exact: text must be the full file name. Stem links ABC0001 to ABC0001.pdf (a full file name also matches). If a folder holds both ABC0001.pdf and ABC0001.xlsx, the name links to the first in folder order and a note gives the count; use Exact and full file names to choose. Matching ignores case. |
choice: Stem, ExactStem |
Link style--link-style |
Relative: links work when the linked index is placed in the input folder's root (and keep working if the whole folder is moved or sent). Absolute: full paths, for use where it is. Relative links are written from the root of the input folder, so they work only when the linked index sits in that root, and keep working if the whole folder is copied, moved or sent. Absolute links hold full paths and work from anywhere that can reach those paths. |
choice: Relative, AbsoluteRelative |
Common settings
| Setting | What it does | Type and default |
|---|---|---|
Input required--input |
Folder (or single file) to read. It is opened read-only and never modified. | folder empty |
Output required--output |
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. | folder empty |
Recurse--recurse |
Include sub-folders. | yes/notrue |
Extensions--extensions |
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. | list empty |
Parallelism--parallelism |
Files processed at once. Use 1-2 for spinning disks or network shares. | number4 |
What you get
Each run creates its own folder inside the output folder, with the report hyperlink-index.csv, errors.csv and manifest.json (see Run folders and manifests).
files\<index name>_linked.xlsx (or .docx): The linked copy of the index.hyperlink-index.csv: One row per link: Location (sheet and cell, such asSheet1!B4, or the paragraph number in Word), Text linked, LinkedFile (path in the input folder) and Target (the link as written).
Report columns
LocationTextLinkedFileTarget
Check the result
- Compare the number of links in the notes with the number of documents in the index. A shortfall usually means an ID in the index does not exactly match a file name.
- Read the notes for names that matched more than one file.
- Open the linked copy from its final location and click a few links, including one in a sub-folder.
- A cell is linked only when its whole text (ignoring spaces at either end) is a file name or ID. A cell holding a range or a sentence, such as
ABC0001 - ABC0004, is not linked. - In Word, a paragraph is linked when its whole text is an ID, which suits indexes laid out in tables. An ID in the middle of a sentence is linked only if Word holds it as a separately formatted piece of text, so do not rely on it.
- Sub-folders are included, so documents can be organised in folders; each link points to the file's own sub-folder.
- If you send the documents without the linked index in their root folder, relative links will not open. Send the folder with the index inside it.
- Absolute links to a local drive (for example
D:\) will not work for anyone who does not have the same drive and folders.
From the command line
The command line is part of LitTechKit Pro. See Command line.
ltk run hyperlink-index --input "D:\Matter\Production\PROD001" --output "D:\Matter\Indexes" --index-file "D:\Matter\Indexes\Privilege log.xlsx" --match Stem --link-style Relative
Related tools
- Relativity Export Formatter: Converts a Relativity export's CSV/DAT index into a hyperlinked Excel index (Index.xlsx) and copies every referenced document, verified, into a plain Documents folder next to it.
- Court Book: Builds a court book from PDFs and an optional Excel/CSV index: a hyperlinked index, consecutive page numbers on every page, and bookmarks for each section and document. Every link and page number is checked.
- Bates Stamp: Stamps sequential Bates numbers and an optional legend (e.g. CONFIDENTIAL) on every PDF page, correctly placed on rotated and cropped pages, writing stamped copies with a Beg/End Bates report.