Excel: WORKSPACE() Hides but Won't Display All Toolbars

Last reviewed: November 30, 1994
Article ID: Q88206
The information in this article applies to:
  • Microsoft Excel for Windows, version 4.0
  • Microsoft Excel for the Macintosh, version 4.0

SUMMARY

In Microsoft Excel, the WORKSPACE() function can be used to hide all currently active toolbars, but the only toolbar that it can be used to display is the Standard toolbar.

MORE INFORMATION

Setting the tools argument of the WORKSPACE() function to FALSE causes Microsoft Excel to hide all visible toolbars when the function is called. Setting this argument to TRUE causes Microsoft Excel to display the Standard toolbar only.

To hide or display a specific toolbar, use the SHOW.TOOLBAR() function.

Example

To hide all visible toolbars, use the following function:

   =WORKSPACE(,,,,,,,,,,FALSE)

To display the Standard toolbar only, use the following function:

   =WORKSPACE(,,,,,,,,,,TRUE)

To hide a specific toolbar, use the following function:

   =SHOW.TOOLBAR(<bar_id>,FALSE,<dock>)

To display a specific toolbar (including the Standard toolbar), use the following function

   =SHOW.TOOLBAR(<bar_id>,TRUE,<dock>)

where <bar_id> is the number or name of the toolbar you want to display and <dock> indicates the position you want the toolbar to be displayed in. The argument <dock> corresponds to the docking position of the Microsoft Excel toolbars (that is, left, right, top, bottom or floating).

REFERENCES

"Microsoft Excel Function Reference," version 4.0, pages 398, 465-466


KBCategory: kbusage
KBSubcategory:

Additional reference words: 4.0 4.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 30, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.