+ Reply to Thread
Results 1 to 3 of 3

VBA to Hide/show Ribbon, Gridlines, Headings, Tabs and Formula bar on Open and BeforeClose

  1. #1
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    74

    VBA to Hide/show Ribbon, Gridlines, Headings, Tabs and Formula bar on Open and BeforeClose

    Hi All,

    I have the following code to hide Ribbon, Gridlines, Headings, Tabs and Formula bar when the spreadsheet is opened (Private Sub Workbook_Open()).

    The Private Sub Workbook_Open() works fine but the Private Sub Workbook_BeforeClose(Cancel As Boolean) is not switching everything back on when the file is closed.

    I have attached a copy of the workbook - however beware that it may cause the above issue when opened and closed

    Please Login or Register  to view this content.

    Any help appreciated

    Cheers

    Dean

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: VBA to Hide/show Ribbon, Gridlines, Headings, Tabs and Formula bar on Open and BeforeC

    Which bits of the code are not switching back?

  3. #3
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    74

    Re: VBA to Hide/show Ribbon, Gridlines, Headings, Tabs and Formula bar on Open and BeforeC

    It is only switching on the gridlines and Heading only

    Cheers

+ 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. Replies: 2
    Last Post: 07-24-2017, 11:12 AM
  2. [SOLVED] Hide All Ribbon Tabs except Custom Tab
    By RustyNail in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-28-2015, 03:15 PM
  3. [SOLVED] VBA code - Hide the Gridlines, Headlines, Formula line, Tabs and protect the workbook
    By gnaske in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-11-2014, 10:00 AM
  4. [SOLVED] Hide gridlines and headings on all pages in workbook
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-07-2014, 11:02 PM
  5. Replies: 1
    Last Post: 02-03-2014, 02:48 AM
  6. Hide Headings, Formula bar, Gridlines, etc on all workbook sheets
    By thoseguys in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2013, 03:48 PM
  7. VBA to hide ribbon (not toolbar) on open workbook, and show on close workboo.
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2012, 04:33 AM

Tags for this Thread

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