Consulting

Results 1 to 4 of 4

Thread: Hide Excel Tabs-Heading-Formula Bar on Opening

  1. #1
    VBAX Regular
    Joined
    Nov 2015
    Posts
    43
    Location

    Hide Excel Tabs-Heading-Formula Bar on Opening

    I would like to have a full screen upon opening an excel file. Can you tell me where should I place the code
    so that the workbook is displayed full screen with no Formula bar, heading and tabs etc.



    Sub HideExcelItems()
    
    Application.DisplayFullScreen = True
    Application.DisplayFormulaBar = False
    ActiveWindow.DisplayWorkbookTabs = False
    ActiveWindow.DisplayHeadings = False
    ActiveWindow.DisplayGridlines = False
    
    End Sub
    Last edited by Zack Barresse; 04-27-2016 at 11:48 AM. Reason: Added CODE tags

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    In the ThisWorkbook code module, in the _Open event is the primary place, but you can flip the settings on and off if you switch between open workbooks

    Capture.JPG
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Regular
    Joined
    Nov 2015
    Posts
    43
    Location
    I added the code “This workbook” under sub procedure “OPEN”.When I opened the excel, I get a full screen, except the “excel” icon on thetop left corner of the screen. When click on the excel icon, I get belowdropdown. Click on Restore, bring back all excel icons, header etc.

    How to remove the “excel” icon?




  4. #4
    Site Admin
    Urban Myth
    VBAX Guru
    Joined
    May 2004
    Location
    Oregon, United States
    Posts
    4,940
    Location
    You can't remove the icon. I think I remember seeing some wild API calling a while back by Ivan Moala regarding this, but it's very fuzzy and I couldn't find it on a search. My suggestion is to leave that one alone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •