I have an Excel sheet with lots of shortcuts in the first column. It's the entire shortcut, including the .lnk extension.
What I need to do is to be able to parse out the string to make the shortcut human readable when I create the hyperlink. I'm saving the output as HTML for a user to open these shortcuts. It's on an internal LAN & secure. Using various versions of Excel (2010, 2007 & 2003, predominately the first).
Trying to make an ugly, 140+ character shortcut into a more readable form for web navigation purposes.
Up to a point, the shortcuts are similar:
\\a123\me\work\folder1\folder2\folder3\shortcut1.lnk
\\a123\me\work\folder1\folder4\folder5\shortcut1.lnk
\\a123\me\work\folder1\folder6\folder7\shortcut1.lnk
\\a123\me\work\folder1\folder8\folder9\shortcut1.lnk
but, later on, they vary from that point out.
\\a123\me\work\folder1\folder10\folder10A\folder11\shortcut1.lnk
\\a123\me\work\folder1\folder_12\folder12A\folder12B\shortcut1.lnk
The strings are the same up to the 7th occurrence of the "\" character, but after that, the foldernames start to change & the shortcut may be down a level (an extra folder) or more. Also, the lengths of the strings change as well, so I can only do positional parsing up to a point.
If possible, I would like to try to do this without doing VBA, but will if that's the only way it can be done.
I'd appreciate any guidance or input.
Thanks!
What I need to do is to be able to parse out the string to make the shortcut human readable when I create the hyperlink. I'm saving the output as HTML for a user to open these shortcuts. It's on an internal LAN & secure. Using various versions of Excel (2010, 2007 & 2003, predominately the first).
Trying to make an ugly, 140+ character shortcut into a more readable form for web navigation purposes.
Up to a point, the shortcuts are similar:
\\a123\me\work\folder1\folder2\folder3\shortcut1.lnk
\\a123\me\work\folder1\folder4\folder5\shortcut1.lnk
\\a123\me\work\folder1\folder6\folder7\shortcut1.lnk
\\a123\me\work\folder1\folder8\folder9\shortcut1.lnk
but, later on, they vary from that point out.
\\a123\me\work\folder1\folder10\folder10A\folder11\shortcut1.lnk
\\a123\me\work\folder1\folder_12\folder12A\folder12B\shortcut1.lnk
The strings are the same up to the 7th occurrence of the "\" character, but after that, the foldernames start to change & the shortcut may be down a level (an extra folder) or more. Also, the lengths of the strings change as well, so I can only do positional parsing up to a point.
If possible, I would like to try to do this without doing VBA, but will if that's the only way it can be done.
I'd appreciate any guidance or input.
Thanks!