Choosing OK Doesn't Close (Custom) Dialog Box in Excel

Last reviewed: November 4, 1994
Article ID: Q59838

SUMMARY

When using a linked file/directory box in a dialog box, wildcard characters left in the File Name text box (the item #6 before items #18 and #19) cause Excel to keep the dialog box on the screen. This behavior is normal operation. With any linked file/directory box, Excel assumes that a filename is required before continuing macro execution.

MORE INFORMATION

There is no way to use a linked file/directory box for an optional filename, nor any way to cause Excel to ignore wildcard characters in a linked file/directory box. If you leave the File Name text box blank and choose OK (press ENTER), Excel places *.* in the text box and returns the dialog box, expecting you to select from the list of files in the current directory.

Choosing Cancel or pressing ESC does permit the dialog box to close without a specified filename; however, any other data you enter will be lost.

REFERENCES

"Microsoft Excel User's Guide," version 3.0, pages 624-641

"Microsoft Excel Functions and Macros," version 2.x, pages 204-218


KBCategory: kbother
KBSubcategory:

Additional reference words: 2.0 2.00 2.10 2.1 3.0 3.00


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: November 4, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.