G
Guest
I have a workbook that uses a hidden workbook for data. For the most part,
everything works, but there is one minor glitch.
For closing, I use:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks("HRData.xls").Close False
End Sub
When the user closes the workbook, the dialog box to save comes up with YES,
NO, CANCEL. If the user hits CANCEL, the HRData.xls is already closed and
the user no longer has access to the data. Is there a better way to close
the hidden workbook?
thank you,
everything works, but there is one minor glitch.
For closing, I use:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Workbooks("HRData.xls").Close False
End Sub
When the user closes the workbook, the dialog box to save comes up with YES,
NO, CANCEL. If the user hits CANCEL, the HRData.xls is already closed and
the user no longer has access to the data. Is there a better way to close
the hidden workbook?
thank you,