+ Reply to Thread
Results 1 to 4 of 4

Prevent right click change on slicer

  1. #1
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Prevent right click change on slicer

    I have a dashbord where everything is protected.
    There are some slicers to interact with the dashboard.
    I want to prevent the user from deleting, change sorting and connections and all other options one will have with the rigth click.

    I have spent most of saturday looking for a way to disable right click on slicers, but it seems there is no solution without getting other problems.

    Is there a way to, with Private Sub Workbook_Deactivate(), see if any right click changes have been done ?
    Then I can prevent the workbook from been saved with the changes, made from right click.
    Attached Files Attached Files
    Last edited by nordicdust; 08-18-2019 at 01:01 PM.

  2. #2
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Prevent right click change on slicer

    Been looking all over for a solution to this, but no luck.

    I se many wright that you can use the:
    Please Login or Register  to view this content.
    But that does not work on Slicers.

    I hope some one can help me solve this.
    All help is much appreceated

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Prevent right click change on slicer

    Using VBA, you can lock a slicer if the worksheet is protected.

    https://docs.microsoft.com/en-us/off....slicer.locked
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Prevent right click change on slicer

    Thanks for taking a look at my problem alansidman,

    The lock dos not prevent right click.
    I am thinking that I would try something like..
    before going to a different sheet, check to se if Slicers exist, if they doen't then Msgbox"some text Bad Boy"
    Workbooks("Dashboard.xlsm").Close SaveChanges:=False

    Maybe you have a better idear :-)

+ 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. Loop through slicer, while also selecting single slicer value on separate slicer
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2018, 01:41 PM
  2. Replies: 1
    Last Post: 04-23-2018, 09:43 AM
  3. [SOLVED] Prevent Chart flickering when changing a slicer
    By cfayek in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-06-2017, 05:55 AM
  4. [SOLVED] to prevent triggering a combo box click event when change the list
    By aprildu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2016, 02:56 PM
  5. Disabling right-click on slicer
    By nea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2014, 06:52 PM
  6. [SOLVED] Change Chart Title Depending on a Slicer - slicer advice
    By JungleJme in forum Excel General
    Replies: 8
    Last Post: 08-17-2012, 07:59 AM
  7. Prevent ListBox Click Event Until Mouse Click
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2011, 12:23 PM

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