New folder structure causing broken links in Office documents
Reorganising the folder structure where Office documents are stored will break every embedded link that references the old paths. This includes hyperlinks, OLE object links, Excel external cell references, and any field code or VBA string that hard-codes a path. ReplaceMagic scans all affected documents and repairs every broken reference in bulk, without opening any file in Office.
What triggers a folder restructuring
Folder structures are reorganised for a variety of business reasons:
- Department reorganisation — teams are renamed, merged or split, and the folder hierarchy is updated to reflect the new structure
- Compliance requirements — regulatory or audit requirements mandate a specific folder naming convention or retention hierarchy
- Project completion archiving — active project folders are moved into an archive hierarchy once a project closes
- Adding a year or date layer — a common change is inserting a year folder between an existing parent and its children, for example moving from
\\Server\Finance\Reports\to\\Server\Finance\2026\Reports\
How inserting a parent folder breaks all existing links
Consider a Finance department that stores reports at \\Server\Finance\Reports\. Hundreds of documents contain hyperlinks to files in that location. The decision is made to add a year folder for archiving purposes, so the path becomes \\Server\Finance\2026\Reports\. Every existing link that points to the old path is now broken — the path string \\Server\Finance\Reports\ no longer exists on the file system.
Which link types break
Absolute paths break immediately when the folder is moved or renamed. Any link that contains the full path from the server root will fail the moment the path changes. Relative paths break if the restructuring changes the depth of the folder hierarchy — adding or removing a level in the path invalidates any relative reference that depends on the depth relationship between the source and target documents.
The compounding problem
Folder restructuring often creates a chain reaction. Document A links to Document B, which links to Document C. If Document B is moved to a new path, Document A's link to Document B breaks. At the same time, Document B itself may have been open and saved with updated links to Document C, but if Document C was also moved, Document B's links to C also break. The result is a web of interdependent broken links that must all be repaired consistently.
A scan before starting the repair reveals the full scope of this chain, so every link at every level can be addressed in the same replacement run.
How ReplaceMagic fixes it
The repair process is straightforward:
- Scan first — run ReplaceMagic against the document root to produce a complete list of all documents and all embedded paths. This gives you the full scope of what needs to change before touching anything
- Configure one replacement rule — enter the old folder path as the search string and the new folder path as the replacement. For the example above, the rule is: replace
\\Server\Finance\Reports\with\\Server\Finance\2026\Reports\ - Preview — confirm which documents and which strings will be affected
- Execute — all affected documents are updated in a single pass
If the restructuring involved several folders being moved or renamed simultaneously, multiple replacement rules can be configured and run in one pass, so all changes are applied consistently across the document estate in a single operation.
Verify before and after
Use ReplaceMagic's scan capability to run a link validity check against the new folder structure after the replacements have been applied. This confirms that all previously broken links now resolve correctly, and identifies any edge cases that may require additional rules.
In case of any questions please do not hesitate to contact us.










