SandsB
Well-known Member
- Joined
- Feb 13, 2007
- Messages
- 731
- Office Version
- 365
- Platform
- Windows
The IT gods moved all my files from a shared drive to sharepoint. The links within the sheets are fine but whatever magic conversion was going on didn't do anything for my macros. This leaves me stumped.
When the file was on a shared drive.....
3 cells have values that are part of a filename to open. There are several dozen links like this in the macro but they all are some version of this.
A8 = 2024
B8 = Oct
C8 = M3
The line below worked in the macro when the input file was on a shared drive to open file V:\Reports\DB\2024\UReports\M3 Oct 2024.xlsx
Workbooks.Open ("V:\Reports\DB\" & Range("A8") & "\UReports\" & Range("C8") & " " & Range("B8") & " " & Range("A8") & ".xlsx")
I need to open the file using the same 3 cells in this example. If I manually link a cell (B5) to the file, sharepoint tells me this is the link:
='https://coname-my.sharepoint.com/personal/user_coname_com/Documents/Metrics/DB/2024/UReports/[M3 Oct 2024.xlsx]10-23'!$B$5
How do I get excel to link with this http reference and use the 3 cells as input? Is it even possible to link to a sharepoint file?
When the file was on a shared drive.....
3 cells have values that are part of a filename to open. There are several dozen links like this in the macro but they all are some version of this.
A8 = 2024
B8 = Oct
C8 = M3
The line below worked in the macro when the input file was on a shared drive to open file V:\Reports\DB\2024\UReports\M3 Oct 2024.xlsx
Workbooks.Open ("V:\Reports\DB\" & Range("A8") & "\UReports\" & Range("C8") & " " & Range("B8") & " " & Range("A8") & ".xlsx")
I need to open the file using the same 3 cells in this example. If I manually link a cell (B5) to the file, sharepoint tells me this is the link:
='https://coname-my.sharepoint.com/personal/user_coname_com/Documents/Metrics/DB/2024/UReports/[M3 Oct 2024.xlsx]10-23'!$B$5
How do I get excel to link with this http reference and use the 3 cells as input? Is it even possible to link to a sharepoint file?