The information in this article applies to:
SYMPTOMSWhen you use the Find method in a macro, you may receive the one of the following error messages:
-or- This problem occurs if the Find method fails to find any matching data in a particular field. CAUSEThe Find method should return False if it fails to find matching data. Instead, it causes one of the above run-time errors. WORKAROUND
The following macro code demonstrates how to use error handling to
bypass the run-time error 1004 when using the Find method.
Sample Macro
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 more information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONThe run-time 1004 error message can have several different causes. For example, this message is displayed when the Find or FindNext command is called by a macro but there are no more tasks or resources to be found. This message can also mean that the argument value in the Find method could not be found; for example, if you are trying to find a specific task description in the project file but there are no tasks with that description. Additional query words: warning execution
Keywords : kbcode kbprg |
Last Reviewed: October 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |