Thank you for your proposition JBeaucaire.
The way I'm trying to make reference this particular Excel file easier is by defining it with 'W2bk' name.
Long naming (that I prefer to avoid):
DriveForData = Range("DriveForData")
DataSourceDirectory = Range("DirectoryForStudyData")
DataSourceFile = Range("LastFileEdited")
Workbooks.Open Filename:=(DriveForData & DataSourceDirectory & DataSourceFile)
To avoid this long naming, I'm trying to call the file 'W2bk' so that I can reference it in the VBA code.
When writing your suggestion, I still receive error message 13
Workbooks.Open Filename:=(DriveForData & DataSourceDirectory & DataSourceFile) 'I try with and without this line; neither works
Set W2bk = Workbooks.Open((DriveForData & DataSourceDirectory) & (DataSourceFile)) 'run type error 13: type mismatch
Thank you for your help.
Bookmarks