Toggle full screen

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,453
Hi,
Try this. Press Alt+F11 to open the vb editor.
(If the 'VBAProject' is not showing in the left of the screen then hit the 'Project Explorer' button on the toolbar to display it.)
Find your workbook name in the project explorer and select 'ThisWorkbook' below it. (You may have to expand the Microsoft Excel Objects tree for the workbook first.)
From the menu, choose Insert > Module. Paste all 3 of these routines into the standard module that opened up. (The white area on the right.)
Code:
Sub auto_open()
' assign our own macro to the F11 key:
  Application.OnKey "{F11}", "sbToggleFullscreen"
End Sub


Sub auto_close()
' set the F11 action back to default
  Application.OnKey "{F11}"
End Sub


Sub sbToggleFullscreen()
  If Application.DisplayFullScreen Then
    Application.DisplayFullScreen = False
  Else
    Application.DisplayFullScreen = True
    ' to not show the fullscreen commandbar
    ' uncomment the following line
    ' Application.CommandBars("Full Screen").Visible = False
  End If
End Sub
Press Alt+Q to close the vb editor, save & close the workbook and re-open it to try it out.

Hope it helps.
 

Ghais Chatila

New Member
Joined
Aug 7, 2009
Messages
21
Thanks Half Ace,

i tried the procedure, and then it asked me to save my workbook as a macro enabled doc. I did that saved, closed and reopened, and F11 still opens up a chart. Please follow up. Thanks
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,330
Messages
5,510,653
Members
408,806
Latest member
Hunlight

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top