The information in this article applies to:
SUMMARYYou cannot use the Microsoft Team Manager Application object's read-only File property to change the name of the active team file. Attempting to do so results in an error message. Depending on the syntax you use, it may result in a misleading error message. For example, if the following macro is run from an application that supports Visual Basic for Applications macros, it results in a "Type Mismatch" error:
MORE INFORMATIONThe Application's read-only File property returns a File object. The default property of a File object is its read-only Name property. Assuming that oTmgr refers to the Team Manager Application object, the table below shows various incorrect uses of File and Name and the resulting error messages:
Because Name is the default property of the File object, the line
should produce the same error message as the line:
NOTE: The correct way for a macro to rename the current team file is to
save it out with a different name using the Application object's SaveAs
method. For example:
Additional query words: 1.00
Keywords : kberrmsg kbprg kbdta kbdtacode |
Last Reviewed: October 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |