Convert Copied Paths to File Hyperlinks Macro

Converts selected pasted "Copied Paths" into file hyperlinks. This provides similar functionality now removed from OneNote that allowed files copied from windows explorer to be pasted as hyperlinks. To use; 1-Ctrl Select multiple files within windows explorer, 2-Shift + right click one of the selected files, 3-Choose "Copy as Path" from context menu, 4-Go to OneNote and paste into a page, 5-Select all pasted paragraphs, 6-Select "Convert Copied Paths to File Hyperlinks" from Onetastic's hyperlink menu. See a demo of the macro in action at If you find this macro useful please donate to to encourage the development of more useful timesavers.


Author(s) : Simon Rear
Category : Hyperlink
Last Updated : February 11, 2018
Requirements : OneNote 2010 or above
Watch this short video to learn more about this macro
Changelog :

February 11, 2018 (ADD72B) - Simon Rear
Minor comment changes.

February 11, 2018 (4862EB) - Simon Rear
Minor update to comments.

December 03, 2017 (0296AE) - Simon Rear
Previous macro version had double backslashes stripped out after upload for some reason introducing a bug preventing macro from working. This version corrects this.

December 01, 2017 (B501DF) - Simon Rear
Macro now also converts inline copied paths preserving any text before and after the copied path within the selected paragraph(s).

November 26, 2017 (3459E0) - Simon Rear
Initial Version


Richard Hom - 2019-01-30
Is there a macro that will split window (like Word). Unfortunately, the "new window" that is current in OneNote has synchronized to the first window such that the second window is not stationary. Difficult to use the second window as a reference.
Simon Rear - 2017-12-09
Hi RGreen, could be persuaded to develop a macro for you that does this if you are willing to make a donation for my time, it's precious :-).
RGreen - 2017-12-04
after the update the macro works like a charm for me, thanks!
How about implementing a function to convert it back into a full path again?