Hey guys,
When I put
Option Explicit
Private Sub Workbook_Open()
DisplayCurrentMonthSheet
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
DisplayCurrentMonthSheet
ThisWorkbook.Save
End Sub
And I save everything and try to close the Workbook Excel freaks out and I get an Application Error
"The instruction at "0x30410bfb" referenced memory at "0x00000008", the memory could not be "read".
Click ok to terminate the program
Click cancel to debug"
When I debug I get a message that says
"Unhandled exception in Excel.exe: 0xC000005!
Access Violation"
When I try to reopen the workbook it says that its read only because "Systems Manager" has the file locked for editing.
And they only way I can get it to open again is to reboot the computer.
Any Ideas as to why this would be happing?
Also, I was wondering if there is a way to get Excel to generate a report. Say after the person gets into the Admin section there will be a button that says Generate Report or something like that... and once its clicked have excel make a new work book with the current months data and a chart analyzing that data on a second sheet and have it call up Outlook and send a copy of the generated file to the upper management?
Cause that would be really cool
Thanks in advance
Paul
