Convert Copied Paths to File Hyperlinks Macro

Description : 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 https://youtu.be/22nMT8wy8Cc. If you find this macro useful please donate to http://www.paypal.me/SimonRear to encourage the development of more useful timesavers.

Download

Convert Copied Paths to File Hyperlinks Macro

You need Onetastic Add-in
for OneNote to run this macro.
Download Onetastic
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

Comments

Name
Comment
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?
Simon Rear - 2017-11-28
Hi RGreen I have tried installing a German language pack, setting it as default language and macro still works for me. Can I suggest you turn on Macro Logging from the Onetastic settings menu, then run the macro again, (repeating the process you outlined below to try and covert a path). This should create a log file called "macroLog.txt" in  folder "C:\Users\[Your User Name]\AppData\Roaming\Onetastic ". Please upload the log file to a file sharing site like google drive or one drive and post a public link here so I can inspect it?  (I'd rather not post my private email address on a public site.) Maybe this will give us a clue as to what is going on.