Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Slicer VBA - Styling the slicer

$
0
0

Hi Everyone!

I have about 60+ different workbooks I display in SharePoint using Excel Web Access Web Parts.

To make the aesthetics / visualizations even better, I am writing some code to loop through all the excel files to remove chart borders so they blend right into the page! Here below is a snippet of me removing chart borders:

Sub removeBorders()
    Dim myChart As ChartObject
    For Each myChart In Sheets("Sheet1").ChartObjects
        myChart.Chart.ChartArea.Border.LineStyle = xlNone
    Next myChart
End Sub

Question: How do I access the style properties of the slicer? I want to remove the borders from the slicers as well.

Thanks for any advice or code you offer!! it's much appreciated.

Best Regards,

-CP






Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>