XL97: Run-Time Error Using ShowDependents MethodLast reviewed: February 27, 1998Article ID: Q164810 |
The information in this article applies to:
SYMPTOMSWhen you run a Visual Basic for Applications macro that uses the ShowDependents method, you may receive the following error message:
Run-time error '1004': ShowDependents method of Range class failed WORKAROUNDTo work around this problem, use the ExecuteExcel4Macro method in your macro.
ExamplesIf your macro contains the following line of code to trace formula dependents
Selection.ShowDependentsreplace it with the following line of code:
Application.ExecuteExcel4Macro "TRACER.DISPLAY(FALSE,TRUE)"If your macro contains the following line of code to remove the arrows that trace formula dependents
Selection.ShowDependents Remove:=Truereplace it with the following line of code:
Application.ExecuteExcel4Macro "TRACER.DISPLAY(FALSE,FALSE)" STATUSMicrosoft has confirmed this to be a problem in the Microsoft 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.
REFERENCESFor more information about auditing, click the Index tab in Microsoft Excel Help, type the following text
auditing formulas, tracing dependents and precedentsand then double-click the selected text to go to the "About examing the structure of formulas" topic.
|
Additional query words: XL97 xl97vbmigrate
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |