Randall00
Board Regular
- Joined
- Jan 31, 2008
- Messages
- 54
Hey everybody,
Am I missing something here, or should this be working:
I'm just trying to get this workbook to open up another workbook--I'm fairly certain I've gotten this to work just fine many many times before. Should this code not open up the "core.xlsb" workbook?? (which definitely does exist, is spelled correctly and is located in the same directory as "ThisWorkbook")?
It seems to ignore the Workbooks.Open statement as though it's not even there. ThisWorkbook's window is not visible, but it doesn't seem to make a difference whether I leave it visible or not.
What could be going on here?
Am I missing something here, or should this be working:
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim strPath As String
strPath = ThisWorkbook.Path & "\core.xlsb"
Dim wbCORE As Workbook
Set wbCORE = Workbooks.Open(strPath)
End Sub
I'm just trying to get this workbook to open up another workbook--I'm fairly certain I've gotten this to work just fine many many times before. Should this code not open up the "core.xlsb" workbook?? (which definitely does exist, is spelled correctly and is located in the same directory as "ThisWorkbook")?
It seems to ignore the Workbooks.Open statement as though it's not even there. ThisWorkbook's window is not visible, but it doesn't seem to make a difference whether I leave it visible or not.
What could be going on here?