Hi everyone
I have several excel files open and I have a workbook named "Master" ,that workbook has a sheet called "Data Base", I want to activate the workbook that its name is in the cell(1,3) of "Data Base" worksheet I had wrote the code below
Workbooks(Workbooks("Master").Worksheets("Data Base").Cells(1, 3).Text + ".xlsm").Activate
but I get "Subscript out of range" error.
I know this is a reference error because when I type the workbook name it works.
Any ideas how I can solve this?
thanks in advance
I have several excel files open and I have a workbook named "Master" ,that workbook has a sheet called "Data Base", I want to activate the workbook that its name is in the cell(1,3) of "Data Base" worksheet I had wrote the code below
Workbooks(Workbooks("Master").Worksheets("Data Base").Cells(1, 3).Text + ".xlsm").Activate
but I get "Subscript out of range" error.
I know this is a reference error because when I type the workbook name it works.
Any ideas how I can solve this?
thanks in advance