talljohn
05-17-2008, 03:01 AM
Hello Experts,
as long as I don't protect my VB-Code I have no problem to close and open my EXCEL Workbook. (VBA code of ~ 10,000 lines, 1 multipage with ~200 elements).
If I protect the code and try to open the workbook, EXCEL first comes up with the worksheet I call in a Sub Auto_open() but then abords with that ugly window which is asking to report this error to MS or not and option to recover the file. (which doesn't work, it's running into the same error)
In the past this error occured mostly (not always) if I closed the workbook. But now it comes up if I open it already - what makes my application useless of course. (I note that it takes much more time to open the workbook without code protection, because there' intensive calculation of cells indicated, while this calculation seems not to be proceded by opening a protected workbook. This may be important.)
Desperately,
Johannes
as long as I don't protect my VB-Code I have no problem to close and open my EXCEL Workbook. (VBA code of ~ 10,000 lines, 1 multipage with ~200 elements).
If I protect the code and try to open the workbook, EXCEL first comes up with the worksheet I call in a Sub Auto_open() but then abords with that ugly window which is asking to report this error to MS or not and option to recover the file. (which doesn't work, it's running into the same error)
In the past this error occured mostly (not always) if I closed the workbook. But now it comes up if I open it already - what makes my application useless of course. (I note that it takes much more time to open the workbook without code protection, because there' intensive calculation of cells indicated, while this calculation seems not to be proceded by opening a protected workbook. This may be important.)
Desperately,
Johannes