Production

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.

PRO Command line: hyperlink-index Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

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

How to run it

  1. Choose the folder holding the documents as Input.
  2. Choose an Output folder.
  3. Choose the index or privilege log (.xlsx, .xlsm, .docx or .docm) as Index file.
  4. Set Match: Stem if the index lists IDs without extensions (ABC0001), Exact if it lists full file names.
  5. Set Link style: Relative if the index will travel with the documents, Absolute if it will be used where the documents are now.
  6. Click Run, read the notes, then Open report.
  7. For relative links, copy the linked index from the run's files folder 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

SettingWhat it doesType 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, Exact
Stem
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, Absolute
Relative

Common settings

SettingWhat it doesType 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/no
true
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. number
4

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).

Report columns

Check the result

Tips
  • 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.
Watch out for
  • 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