WD2000: Using LinkToPrevious After Retrieving Range.Information Causes VBA Run-Time Error 4605
ID: Q242931
|
The information in this article applies to:
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.
WORKAROUND
Use one of the following methods to work around this problem:
- Select the range about which you want to retrieve the information, and then use the Selection object instead of a Range object.
- 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 this to be a problem in the Microsoft products listed
at the beginning of this article.
Additional query words:
Keywords :
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug