WD97: Run-Time Error '4605': Command Not AvailableLast reviewed: February 11, 1998Article ID: Q165515 |
The information in this article applies to:
SYMPTOMSWhen you close a document protected for forms, you receive the error:
Run-time error '4605': Command not availableAfter receiving the error, you cannot close or save your document.
CAUSEThis problem occurs when you:
This problem occurs because the underlying template add-in, Html.dot, for the Web Page Wizard is still active and all menu commands reflect the menus of the Html.dot template. When you choose one of the menu commands, such as Close on the File menu, a call is made to the Html.wll add-in. Because the Web Page has been closed, the call fails.
RESOLUTIONTo resolve this problem, create and run the following macro: The following macro unprotects the active document, removes the HTML.Dot as an Add-In and then re-protects the active document.
Sub RestoreMenus() ' Unprotect the document. If ActiveDocument.ProtectionType <> wdNoProtection Then ActiveDocument.Unprotect End If ' Remove the HTML.Dot as an add-in(To restore the default menus. AddIns(Options.DefaultFilePath(wdProgramPath) & _ "\HTML.Dot").Installed = False ' Reprotect the document. If ActiveDocument.ProtectionType = wdNoProtection Then ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End If End Sub STATUSMicrosoft has confirmed this to be a problem in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: vb vbe vba
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |