+ Reply to Thread
Results 1 to 2 of 2

Disable Hide/Unhide from Format, and right click on Row and Column

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2010
    Posts
    1

    Disable Hide/Unhide from Format, and right click on Row and Column

    Hello,
    I'm looking for code (or whatever else) to grey out the user's ability to hide rows and columns for a tab in the worksheet, in Excel 2010.

    I've tried numerous codes I found online, but none worked.

    I have one that disables the right click on a cell, Sub Disable_Shortcut()CommandBars(21).Enabled = False, but I do not know what the "number" is that corresponds to the other functions I require. And I'm not sure this is the best way to go about this.

    Basically, I do not want to user to be able to hide any rows or columns in my spreadsheet.

    Any help will be GREATLY appreciated!!

    THANK YOU!!!!

  2. #2
    Registered User
    Join Date
    11-27-2012
    Location
    Barcelona
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Disable Hide/Unhide from Format, and right click on Row and Column

    Hi,

    Here you have some examples:

    Application.CommandBars("Column").Enabled = Status ' It will disable the column menus
    Application.CommandBars("Cell").Enabled = Status ' It will disable the cell menus
    Application.CommandBars("Row").Enabled = Status ' It will disable the row menus
    Application.CommandBars("Ply").Enabled = Status ' It will disable the tabs menus
    Application.CommandBars("List Range Popup").Enabled = Status ' It will disable the table menus
    Cheers.

+ 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