+ Reply to Thread
Results 1 to 3 of 3

Trying to hide Minimize and Restore Down

  1. #1
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Trying to hide Minimize and Restore Down

    I searched online line for help but can't find any. I am looking for code to make macro to hide the Minimize & Restore Down buttons upon opening the file and unhiding them when closing file. Any help is appreciated.

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Trying to hide Minimize and Restore Down

    Unfortunately this is not possible as those features are part of Windows and not related to Office/Excel etc.

    You do have some options. This suggestion from Nimrod may be of use for you;

    OPTION 1
    The following statement will prevent windows from being minimized:

    ActiveWindow.EnableResize = False


    OPTION 2
    You can do this with the Workbook_WindowResize event procedure. Put the following code in the workbook code module.

    Private Sub Workbook_WindowResize(ByVal Wn As Window)
    Wn.WindowState = xlMaximized
    End Sub


    TO PREVENT APP AND WorkBook Closure:

    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Cancel = True
    End Sub

    SHEET IN FULL SCREEN VIEW :
    Public Sub FullScreenView()
    Application.DisplayFullScreen = True
    End Sub



    NOTE: This code needs to be inserted in the "ThisWorkBook" Code Window .

  3. #3
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    343

    Re: Trying to hide Minimize and Restore Down

    Thank you. I will run it and see how it works.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Disable the 3 buttons (minimize, restore and close)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-20-2023, 01:30 AM
  2. hide close,mini,restore button in excel
    By cdtp in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-14-2017, 04:41 AM
  3. hide close,mini,restore button in excel workbook
    By cdtp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2017, 11:34 AM
  4. Hide/Minimize Excel 2010 workbook when launching userform
    By enderoos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2014, 02:22 PM
  5. Hide and Restore toolbars (fullscreen)
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2012, 02:20 PM
  6. Hide and restore MRU List
    By phenomenix in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2008, 01:20 PM
  7. Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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