XL: Workspace Doesn't Retain Window Size

Last reviewed: February 2, 1998
Article ID: Q160264
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel 98 Macintosh Edition
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a

SYMPTOMS

When you open a workspace (*.xlw) file in Microsoft Excel, the window state is not retained. Instead, the windows appear in the restored state.

CAUSE

This problem occurs when you maximize the windows in a workspace, save the workspace file, and then reopen the file.

WORKAROUND

To open a workspace file with maximized windows, do either of the following:

  • Manually maximize the active window by clicking the Maximize button in the upper-right corner of the document window.

        -or-
    
  • Create a Visual Basic for Applications macro that automatically maximizes the active window when you open the workbook.

Macro Example

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

   http://www.microsoft.com/supportnet/refguide/

The following macro example runs automatically when you open the workbook, and maximizes the window.

   Sub Auto_Open()
       ActiveWindow.WindowState = xlMaximized
   End Sub

For additional information about workspace files, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q113803
   TITLE     : XL: Split or Frozen Panes Not Saved in Workspace

   ARTICLE-ID: Q10042
   TITLE     : Zoom Setting Lost When Workspace File Saved and Reopened

   ARTICLE-ID: Q108474
   TITLE     : Window Options Not Saved in Workspace File


Additional query words: XL98 98 XL97 97 8.00 7.00 5.00 5.00a 5.00c
Keywords : xlloadsave xlui kbcode kbprg kbualink97
Version : WINDOWS:5.0,5.0c,7.0,97; MACINTOSH:5.0,5.0a,98
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


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