You do not require VBA to create links
I created folder medcourses on my D drive
If values in column A are folder names, this formula opens the folder specified in cell A2
Formula:
=HYPERLINK("D:\medcourses\"&A2,"Link To Cases")
Had you wanted to open an Excel file specified in cell A2, then this would work
Formula:
=HYPERLINK("D:\medcourses\"&A2&".xlsx","Link To Cases")
note:
I am not network savvy, but if your drive is not mapped, I believe the link string takes this pattern
\\MyServer\MyFolder\
Bookmarks