Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/102864

From BetaArchive Wiki

Microsoft Knowledge Base

Excel: Type_num Required with DOCUMENTS()

Last reviewed: September 12, 1996
Article ID: Q102864

The information in this article applies to:

  • Microsoft Excel for Windows, versions 4.0, 4.0a
  • Microsoft Excel for the Macintosh, version 4.0

SUMMARY

On pages 118 and 460 of the "Function Reference," version 4.0, the type_num arguments in the DOCUMENTS() and WINDOWS() functions are not bold, indicating that the argument is not required.

This information is incorrect: when you use the match_text argument, type_num is a required argument for both the DOCUMENTS() and WINDOWS() functions if wildcards are present in the match_text argument.

MORE INFORMATION

If the type_num argument is not present when you use wildcard characters in the match_text argument, the DOCUMENTS() and WINDOWS() functions will return an #N/A error value.

Examples:

   =DOCUMENTS(,"aa.*")
   =DOCUMENTS(,"*.*")
   =WINDOWS(,"aa.*")
   =WINDOWS(,"*.*")

If the type_num argument is not present when you are using a valid document name with the DOCUMENTS() function, the formula will return an #N/A error value.

Example:

    =DOCUMENTS(,"Sheet1.xls")

REFERENCES

"Function Reference," version 4.0, pages 118, 460


KBCategory: kbdocerr

KBSubcategory:

Additional reference words: 4.00 4.00a



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
©1997 Microsoft Corporation. All rights reserved. Legal Notices.