+ Reply to Thread
Results 1 to 11 of 11

disable window bar at top of screen in XL.

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    disable window bar at top of screen in XL.

    I have a XL 2010 spreadsheet that opens in full screen and a button to save and exit, and I have disabled the Esc Key and right mouse click. What I need to do how is remove the control bar at the top of the window (menu on the left side and Minimize/restore/close on the right) any ideas please. If there is some code for this I will also need to know where to put it. Thanks

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: disable window bar at top of screen in XL.

    I believe this is the code:

    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: disable window bar at top of screen in XL.

    Quote Originally Posted by abousetta View Post
    I believe this is the code:

    Please Login or Register  to view this content.
    That hides the worksheet's headings, not the close, minmise buttons
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: disable window bar at top of screen in XL.

    You are right Roy, then I guess they should use the FullScreen approach to hide the Minimize/restore/close options.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: disable window bar at top of screen in XL.

    full screen doesn't remove those-you need api calls
    Please Login or Register  to view this content.
    as an example
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: disable window bar at top of screen in XL.

    Hi Joseph,

    You are completely correct that the Windows API is required to remove it the options from the root. I tend to just keep the workbook at fullscreen, therefore hiding the options.

    I wasn't able to make the example you provided work. Could you please upload it in an example workbook?

    Thanks.

    abousetta

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: disable window bar at top of screen in XL.

    I reckon that's because we're talking about different things. full screen mode does not hide the minimize/maximize/close (title bar) of the application which is what the asker seems to want.

  8. #8
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: disable window bar at top of screen in XL.

    Yes, you are correct. Not arguing with that. I just don't have a strong command of Windows API. Therefore I keep a loop in place to make sure that the workbook stays in fullscreen. If it is minimized or resized, it pops back into place. I agree that the Windows API approach is the correct way to go, I just can't seem to get it working from my end.

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: disable window bar at top of screen in XL.

    here's an example. it removes the menus then goes full screen. press escape to exit full screen or just alt+f4 and restart excel to get it all back as normal.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: disable window bar at top of screen in XL.

    Thanks. I don't know why it didn't work for me this morning when I first tried it.

  11. #11
    Forum Contributor
    Join Date
    06-25-2012
    Location
    U.K
    MS-Off Ver
    Excel 2016
    Posts
    101

    Re: disable window bar at top of screen in XL.

    Thank you Josephp for the code it works a treat. had to tweak with some of mine to get it to work but cool been trying to do this for a wile.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1