Kind of a noob question. Sorry for that.
I have a string path
W:\documents\files
Is it possible to create an hyperlink from that and store it in a csv so that when a click it in Excel it opens the file ?
I'm guessing you want something like this:
import csv
with open('my_csv_file.csv', 'w', newline='') as file:
writer = csv.writer(file)
writer.writerow(["file:///W:/documents/files"])
the csv module lets you read and write to csv files. Adding file:/// before your file path will let you link to it. Note that this code will write the text to a csv file but it won't become a hyperlink until you put the cursor in front of it and hit enter.