Hello, a real novice here so excuse the probably simple question but I cannot locate an answer.
I have a master workbook which contains lots of file paths to other workbooks. These locations change every month so to get around it I have a sheet which automatically updates the file paths each month.
However I am struggling to get VBA to read that file path which is specified in the cell.
This is a smaller example but I have specified B10 and B11 as the path to open as they will always change but what code do I need to do which say Open "filepath1"
Sub Convert()
Dim filepath1 As String
Dim filepath2 As String
filepath1 = Range("B10").Value
filepath2 = Range("B11").Value
Workbooks.Open (filepath1)
End Sub
I have a master workbook which contains lots of file paths to other workbooks. These locations change every month so to get around it I have a sheet which automatically updates the file paths each month.
However I am struggling to get VBA to read that file path which is specified in the cell.
This is a smaller example but I have specified B10 and B11 as the path to open as they will always change but what code do I need to do which say Open "filepath1"
Sub Convert()
Dim filepath1 As String
Dim filepath2 As String
filepath1 = Range("B10").Value
filepath2 = Range("B11").Value
Workbooks.Open (filepath1)
End Sub