Microsoft KB Archive/242931

From BetaArchive Wiki
Knowledge Base


WD2000: Using LinkToPrevious After Retrieving Range.Information Causes VBA Run-Time Error 4605

Article ID: 242931

Article Last Modified on 10/6/2005



APPLIES TO

  • Microsoft Word 2000 Standard Edition



This article was previously published under Q242931

SYMPTOMS

After you retrieve one of the Range.Information properties in a Word 2000 Visual Basic for Applications macro, the VBA property LinkToPrevious cannot be used any more. It causes run-time error 4605: "The command is not available".

Even if the error is trapped by means of an On Error statement and the Err object, the LinkToPrevious property remains unavailable. After the error message occurs, Word must be restarted before the LinkToPrevious property becomes available in VBA again.

RESOLUTION

To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).

To obtain SR-1/SR-1a, click the article number below to view the article in the Microsoft Knowledge Base:

245025 OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)


Use one of the following methods to temporarily work around this problem:

  1. Select the range about which you want to retrieve the information, and then use the Selection object instead of a Range object.
  2. Use a different method of retrieving the information you want; for example, use Range.Tables.Count instead of Range.Information(wdWithinTable). However, there may not always be an alternative way of retrieving a certain piece of information.


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 corrected in Microsoft Office 2000 SR-1/SR-1a.


Keywords: kbbug kbfix kbqfe KB242931