I have created a userform that pops up with a list workbooks to open.
I'm having trouble with the userform hyperlink.
if I hyperlink in a cell it just knows where to point to get to that file but if I type out the link in vba to open it it only works for that 1 PC
the files are in google drive. and even mapping the google drive folder to the same virtual drive letter it wont open as "G:\mydrive\ folder1" cant be found as it changes to "C:\Users\Admin\Google Drive\Folder1" in windows explorer.
I have used this in vba before for the linking to work correctly but i cant see how to do that in the personal.xlsb file and surely there is a better way.
the final kicker I want it as a global macro so the macro will be stored in personal.xlsb
I was thinking about symbolic linking that file to the google drive so then its easier to setup on multiple pcs and the linking might be easier?
1. Get hyperlinking working for multiple PC's
2. have it as a global macro
I'm having trouble with the userform hyperlink.
if I hyperlink in a cell it just knows where to point to get to that file but if I type out the link in vba to open it it only works for that 1 PC
the files are in google drive. and even mapping the google drive folder to the same virtual drive letter it wont open as "G:\mydrive\ folder1" cant be found as it changes to "C:\Users\Admin\Google Drive\Folder1" in windows explorer.
I have used this in vba before for the linking to work correctly but i cant see how to do that in the personal.xlsb file and surely there is a better way.
VBA Code:
Range("url1").Select ' Named cell "url1"
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
ActiveWorkbook.Sheets("sheet3").Select
the final kicker I want it as a global macro so the macro will be stored in personal.xlsb
I was thinking about symbolic linking that file to the google drive so then its easier to setup on multiple pcs and the linking might be easier?
1. Get hyperlinking working for multiple PC's
2. have it as a global macro