XL2000: Workbook Corrupted If You Delete, Copy, and Save in Macro Procedure (265305)



The information in this article applies to:

  • Microsoft Excel 2000

This article was previously published under Q265305

SYMPTOMS

You may receive the following error message when you open a workbook:
The instruction at "0x3005ca13" referenced memory at "0x00000018". The memory could not be "written".

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


CAUSE

Your workbook is corrupted. This problem may occur when you programmatically do the following in a single macro procedure:
  1. Delete a sheet that contains a control.
  2. Perform a Copy command in a sheet with the same name.
  3. Save the workbook.
The next time you try to open the workbook, you receive the error listed in the "Symptoms" section of this article.

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 2.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kberrmsg kbfix kbOffice2000preSP2Fix kbOffice2000sp2fix kbQFE KB265305