Group,
I need to close a second workbook when the primary workbook closes. I've tried the following macro:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks(propRestran).Activate
ActiveWorkbook.Close
End Sub
When closing the primary workbook (where the macro is housed), the second workbook (named 'propRestran') does not become active and it does not close. What is it that I'm missing or doing wrong?
In advance, thanks for your assistance.
Don
I need to close a second workbook when the primary workbook closes. I've tried the following macro:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks(propRestran).Activate
ActiveWorkbook.Close
End Sub
When closing the primary workbook (where the macro is housed), the second workbook (named 'propRestran') does not become active and it does not close. What is it that I'm missing or doing wrong?
In advance, thanks for your assistance.
Don