Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Step by Step: Create a Shortcut Key to Full Screen View in Excel 2010


View products that this article applies to.

Problem description

When you are finished working in Microsoft Excel, sometimes the command buttons on the ribbon are not needed anymore because we have finished setting the format and complete its formulas. Well, to make the Excel view more widely, we can shrink or hide the contents of the ribbon by double click on one of the tabs on the ribbon or right-click and select Minimize the Ribbon.



But apparently that was not enough, the Excel view need to be widely again to full screen view. Unfortunately on Microsoft Excel 2010 version, that feature is not available by default.

↑ Back to the top


Solutions

To outsmart it we can make it using Macro in Visual Basic Application. But before going into the coding step, so that the macro runs in any Excel file, we have to keep it in the Personal Macro Workbook.

Personal Macro Workbook is a workbook that contains the spcial Excel system named PERSONAL.XLSB. This workbook will be formed if the user create Macros by Recording, and save it in the Personal Macro Workbook.

Personal Macro Workbook is stored in a special folder, according to the user who is logged on. For example, the folder path on my computer is:

C:\Users\RADDINI\AppData\Roaming\Microsoft\Excel\XLSTART\PERSONAL.XLSB

This workbook is opened automatically when Excel starts, It's just hidden so that it looks as if there is no open Excel files. How to display it, on the View tab Window category click Unhide then Unhide dialog box is displayed. select PERSONAL and click OK.
If you do not find the Personal Macro Workbook in the folder path or by Unhide, maybe you have never created Macros by Recording. So before you going to the next step, you have to create Macros by Recording.





↑ Back to the top


How to do

After we know what the Personal Macro Workbook and storage location, the next step is coding.

The following are the steps to coding the macro :

  1. On the Developer tab Code category select Visual Basic, so Visual Basic window is displayed.
  2. On the Project taskpane click VBAProject (PERSONAL.XLSB), then on Insert menu select Module and write the following script:

    End SubSub FScreen()

    If Not Application.DisplayFullScreen Then

    Application.DisplayFullScreen = True

    Else

    Application.WindowState = xlNormal

    Application.WindowState = xlMaximized

    End If
    End Sub



  3. If it is completed, close the Visual Basic window and return to Excel. On the Developer tab Code category select Macros, so Macros dialog box is displayed.
  4. Select the macro that we created earlier and then click the Options button. When you choose a character for the shortcut key make sure its not same with the default Excel shortcut key. For example I choose the key combination Ctrl + Q and then click OK.

  5. Now let's try it, press Ctrl+Q on the keyboard, Excel display will change to full screen view, press Ctrl+Q again to return to the original view.





↑ Back to the top


More information

For more Excel solutions you can contact rahayu.raddini@gmail.com or raddini@windowslive.com

↑ Back to the top




Community Solutions Content Disclaimer

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

↑ Back to the top


Keywords: KB2779060

↑ Back to the top

Article Info
Article ID : 2779060
Revision : 2
Created on : 4/1/2013
Published on : 4/1/2013
Exists online : False
Views : 342