I would like to pragmatically create a CSV and link local files. When I create the file I will be creating a zip that will contain the csv file as well as the files that I want to link to.
I know that csv does not specify a format for hyperlinks as its just a text file. However after a little research I found I can do something like this:
A1: =CELL("filename") A2: =LEFT(A1,FIND("|",SUBSTITUTE(A1,"\","|",LEN(A1)-LEN(SUBSTITUT(A1,"\",""))))) A3: =HYPERLINK(A2 & "brn-0001.xlsx")
However this does not work on a mac as the path separator is "/" not "\". Is there a way to get the path separator in Excel.
Is this really my only option? Other than never using CSV ;)