Guinaba
Board Regular
- Joined
- Sep 19, 2018
- Messages
- 233
- Office Version
- 2016
- Platform
- Windows
Hi guys,
Just wondering what I am missing here. I am trying to set the workbook below which is a opended workbook but keep getting the error 9.
I am skipping the file path because a workbook object variable refers to an open workbook, not the workbook on disk.
Just wondering what I am missing here. I am trying to set the workbook below which is a opended workbook but keep getting the error 9.
VBA Code:
FileSource = "S:\Everyone\"
Dim WB as Workbook
FileName = "Test" & ".XLSM"
Set WB = Application.Workbooks(FileName)
I am skipping the file path because a workbook object variable refers to an open workbook, not the workbook on disk.