Microsoft KB Archive/280825

= XL2000: Excel Quits Unexpectedly When You Use WorkbookBeforePrint Event =

Article ID: 280825

Article Last Modified on 9/12/2006

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition

-



This article was previously published under Q280825



SYMPTOMS
In print preview, if you click Print, click Preview in the Print dialog box, and click Print in print preview again, the system prints your workbook to the default printer, and you receive an error message (access violation) similar to the following:

The instruction at &quot;0x00000024&quot; referenced memory at &quot;0x00000024&quot;. The memory could not be &quot;read&quot;.



CAUSE
This error message occurs when both of the following conditions are true:
 * Your Excel workbook contains Microsoft Visual Basic for Applications code that uses the WorkbookBeforePrint application event to stop the printing process, by setting the Cancel argument to True.
 * The event is triggered from print preview in Excel.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft Office 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

276367 OFF2000: How to Obtain the Latest Office 2000 Service Pack

The English version of this fix should have the following file attributes or later:   Date        Time    Version     Size       File name        Platform 12/07/2000 11:23p  0.0.0.0000  1,718,956  EXCEL.msp        x86 12/07/2000 11:50p  0.0.0.0000  4,306,000  EXCEL_Admin.msp  x86 After the hotfix is installed, the following files will have the listed attributes or later:   Date        Time    Version     Size       File name        Platform 12/07/2000 12:26a  9.0.0.4806  7,155,757  excel.exe        x86



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Microsoft Office 2000 Service Pack 3 (SP-3).

Additional query words: excel2000 excel2k xl2000 xl2k crash hang hangs hung av vba WorkbookBeforePrint

Keywords: kberrmsg kbbug kbfix kbqfe kboffice2000sp3fix kbhotfixserver KB280825

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.