+ Reply to Thread
Results 1 to 7 of 7

Disable Excel's SELECTION PANE

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Disable Excel's SELECTION PANE

    Hello there Excel gurus!

    I tried to search this question over the internet, deeming it is such a simple task, and expecting boatload of links on how to do this. But lo and behold, I can't find any! And now, here I am again.

    I was just wondering if there is a way to disable the Excel's SELECTION PANE from view. You see, I made a VBA code that shows multiple buttons, but the visibility of these will depend on the login credential of the user. Cases are:
    • USER: General Manager - Visible Buttons: 5
    • USER: Sales Manager - Visible Buttons: 3
    • USER: Sales Engineer - Visible Buttons: 1

    Please Login or Register  to view this content.
    I used the visible properties of objects to hide those that are not related to the user. The danger of this is if the user is aware of Selection Pane, he/she can easily override the restriction I set using VBA, and can reveal the other buttons.

    I would appreciate your inputs on this guys, or if you have other workaround other than manipulating the Visibility property, I would appreciate it. Thanks in advance!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Disable Excel's SELECTION PANE

    Try:
    Please Login or Register  to view this content.
    Don't forget to enable it again when you're done...
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Disable Excel's SELECTION PANE

    It would I think be better to make the other controls not function if the user's login credentials don't match the required level.
    Rory

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Re: Disable Excel's SELECTION PANE

    Thanks a lot @Olly! Exactly what I need!

    And thanks to you too, @rorya, for giving me a different but sensible perspective on this case! Care to give an example on how to to do this? The radio buttons are actually within the sheets, and not in a userform.

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Disable Excel's SELECTION PANE

    It would be the same logic you are using to determine which shapes are visible. I'd probably store the result of that somewhere so you don't have to keep recalculating it, then check it in the code assigned to each shape and just exit if it isn't the right level.

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Manila, Philippines
    MS-Off Ver
    2019
    Posts
    102

    Re: Disable Excel's SELECTION PANE

    Makes a lot of sense, @rorya! I assigned a cell in a hidden worksheet and make it as reference for option buttons for identifying a user.

    For the benefit of others who might face the similar situation and still looking for answer other than what Olly provided, here's a code that also works referencing @rorya's suggestion:
    Please Login or Register  to view this content.
    Thanks a lot guys! Highly appreciated!

  7. #7
    Registered User
    Join Date
    06-12-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Disable Excel's SELECTION PANE

    Useful for me too ! Just keeping for future reference.

+ 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. Controlling the Preview Pane or Details Pane
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2016, 09:28 AM
  2. Moved Chart Doesnt appear in selection pane
    By scottc_00 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-16-2015, 07:20 PM
  3. [SOLVED] Simplfiy macro for disable selection pane with "with"
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2014, 12:47 AM
  4. Disable Excel Cells based on Drop-Down Selection.
    By RashmiDixit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2013, 05:45 AM
  5. Disable the task pane shortcut
    By phenomenix in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2008, 11:48 AM
  6. How To disable Alt Key Research Pane
    By BobT in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 08:20 AM
  7. [SOLVED] How can I disable the Task Pane from appearing
    By JohnE in forum Excel General
    Replies: 4
    Last Post: 03-31-2005, 12:06 PM

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