XL: Workspace Doesn't Retain Window Size

ID: Q160264


The information in this article applies to:


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, use either of the following methods:

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 professionals 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/support/supportnet/refguide/

The following sample macro 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:

Q113803 : XL: Split or Frozen Panes Not Saved in Workspace

Q10042 : XL5: Zoom Setting Lost When Workspace File Saved and Reopened

Q108474 : XL: Window Options Not Saved in Workspace File

Additional query words: XL98 98 XL97 97 8.00 5.00a 5.00c


Keywords          : kbcode kbprg kbualink97 xlloadsave xlui 
Version           : WINDOWS:5.0,5.0c,7.0,97; MACINTOSH:5.0,5.0a,98
Platform          : MACINTOSH WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 17, 1999