+ Reply to Thread
Results 1 to 8 of 8

Hide Ribbon

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Post Hide Ribbon

    Dear all
    I have a file in excel which I want when user open it the ribbon will be hidden
    I have a code for hidden the ribbon but I don't know how I can run it on open the file automatically not by hand
    so I want when file opened the code (hidden the ribbon)will run
    thanks in advanced for your answering
    Last edited by pedjvak; 08-31-2013 at 02:56 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hide Ribbon

    Add the below code in ThisWorkbook Code Window. This will even turn off the quick access tool bar too..

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Hide Ribbon

    Dear Sixthsense
    at first thanks for your answering
    but I try and it is not working , when I open the file ribbon was shown plz help
    could you plz answer me by file(in excel)
    Last edited by pedjvak; 08-31-2013 at 02:26 AM.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hide Ribbon

    You should paste the code in ThisWorkbook code window.

    To Add Excel VBA Code to a Workbook / This Workbook Module

    1. Copy the code that you want to use
    2. Select the workbook in which you want to store the code
    3. Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    4. In the Project Explorer, find your workbook, and open the list of Microsoft Excel Objects
    5. Right-click on the ThisWorkbook object, and choose View Code
    6. Where the cursor is flashing, choose Edit | Paste

  5. #5
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Hide Ribbon

    Dear Sixthsense
    I do step by step what you say but it is not working
    I attach my sample file and the code which you suggest
    plz try it
    I copy and past your code so when you download an open it , it must be worked (hide the ribbon) but it is not working
    Attached Files Attached Files
    Last edited by pedjvak; 08-31-2013 at 02:43 AM.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hide Ribbon

    Nope, In your attached file still the suggested code resides in a Module. Please move the code to this workbook code window instead of keeping it in module.

    Please refer post #4 once again to know how to add the code in This Workbook Code Window.

  7. #7
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Hide Ribbon

    yes its working
    thank you very much

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hide Ribbon

    Glad it helps you and thanks for the feedback

+ 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. Hide the Ribbon in Excel
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2013, 12:33 PM
  2. Hide ribbon and toolbar
    By NathalieF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2013, 04:34 AM
  3. Code to hide Ribbon
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-06-2012, 04:06 AM
  4. Hide Tab on Custom Ribbon
    By WilliamJones in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2011, 08:53 AM
  5. Ribbon - Hide the Get Started tab
    By paulzak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2009, 09:03 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