+ Reply to Thread
Results 1 to 2 of 2

Hide or disable option button or show empty graph when slicer item has no data on userform

  1. #1
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Hide or disable option button or show empty graph when slicer item has no data on userform

    Good Day,

    I hope this mail finds you all well on this beautiful Friday.

    I have a problem which seems to be difficult fro me to solve.

    I have a userform with options buttons on it that activates the options available on two slicers of a pivot table.

    As per the images, when there is no data for the item on the slicer it still shows me the graph of the previous option.

    The data in the sheet for the pivot table is always changing.

    How do I adapt the code to basically say, if the option chosen has no data, it should show the empty graph or make Image1 blank, or disbale the option button so that you can not select it in the first place.

    Below is the code I am using for the slicers currently.

    Any help will be highly appreciated!

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    I did not paste the code for the other 5 option button, because it is the same as above one.

    Below is the images that shows my problem.

    Thanks!
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Hide or disable option button or show empty graph when slicer item has no data on user

    Never-mind, I found the quick fix.

    It seems that it is important in the code to put the the selected item for that option first in the code. It seems to work no fine after I move it to the top and is giving me an empty graph.



    Please Login or Register  to view this content.

+ 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: 6
    Last Post: 08-31-2017, 12:16 PM
  2. Replies: 6
    Last Post: 07-15-2017, 09:54 AM
  3. [SOLVED] How to hide and show userform and werksheet with Toggle Nutton and Command Button
    By DawidV in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-26-2017, 07:22 AM
  4. Hide option buttons based on other option button
    By monfos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2016, 05:16 PM
  5. Show and hide chart by clicking option button
    By mrsexcel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-12-2014, 07:28 AM
  6. How to hide and not show Data Labels if Value=0 in Graph?
    By xadieu in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-10-2012, 04:11 AM
  7. Userform Option Button to Show/Hide Another Option Button on same Userform
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2010, 09:44 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