Microsoft KB Archive/325619

= WD2000: Document with an Embedded Object Continues to Prompt for Save Even After You Set Saved Property =

Article ID: 325619

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q325619



SYMPTOMS
If the Saved property on the Document object is set to True in Microsoft Word, you can prevent Word from prompting you to save the document when you close the document. This occurs even if you modify the document. However, if the document contains embedded objects (either standard OLE objects or ActiveX Controls), the Save dialog box appears even if you set the Saved property to True.



CAUSE
This behavior occurs when you modify the embedded object but do not save the embedded object. The persistent data of the object is not saved to the document. This &quot;dirty&quot; flag is not reset to False when you use the Document.Saved property of Word.



RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Office 2000 Public Update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

After the hotfix is installed, the English version of this fix will have the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Size       File name 23-Nov-2002 14:50      1,804  Hotfix.txt 07-Nov-2002 19:20      2,962  Readme.txt 07-Nov-2002 19:05  3,667,096  Winword.msp 07-Nov-2002 19:41  4,684,436  Winword_admin.msp The English version of this fix should have the following file attributes or later:   Date         Time   Version     Size       File name --  02-Nov-2002  07:15  9.0.0.7031  8,826,932  Winword.exe

NOTE: The following registry changes must be made to enable this functionality. To make the registry changes, follow these steps:

 Start Registry Editor. Locate and then click the following key in the registry:



HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options

 On the Edit menu, click Add Value and then add the following registry value:

Value name: EnableSubDocPutSaved

Data type: DWORD

Value data: 0x00000001 (Enable) or 0x00000000 (Disable)

 Quit Registry Editor.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

<div class="status_section">

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

<div class="moreinformation_section">

Steps to Reproduce the Behavior
 Start Microsoft Word.</li> Type a line of text and then press ENTER two times.</li> On the Insert menu, click Object.</li> On the Create New tab, click Microsoft Excel Worksheet from the list of object types.</li> Click OK to insert the object.</li> Type a value in cell A1 of the embedded worksheet and then click outside the worksheet to deactivate Excel.</li> Press ALT+F11 to access the Visual Basic for Applications (VBA) editor.</li> On the Insert menu, click Module to insert a new module.</li>  Paste the following code in the new module: Sub SetSaved Application.ActiveDocument.Saved = True End Sub </li> Close the VBA editor.</li> On the File menu, click Save.</li> Save the file as C:\Test.doc .</li> On the File menu, click Close to close the document.</li> On the File menu, click Open to reopen the document.</li> Double-click the worksheet and then put a value in cell B1.</li> <li>Click outside the worksheet to deactivate it.</li> <li>On the Tools menu, click Macro and then click Macros....</li> <li>Click to select SetSaved and then click Run to run the macro.</li> <li>On the File menu, click Close to close the document.

Notice that you are prompted to save the document.</li></ol>

Keywords: kbbug kbfix kbqfe kbhotfixserver KB325619

-

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

© Microsoft Corporation. All rights reserved.