Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Excel - Change Data Label Font Size

$
0
0

I have the following code in creating an Excel chart in Powershell,  how can I change the Font Size for the Data labels ?

$workbook.ActiveChart.ApplyDataLabels()  turns on the Data Labels,  but how can I change the font ?

    $range = $worksheet1.UsedRange
    $range.EntireColumn.AutoFit()
    $workbook.charts.add()
    $workbook.ActiveChart.chartType= $chartType
    $workbook.ActiveChart.SetSourceData($range)
    $workbook.ActiveChart.ApplyDataLabels()

Thank you for your help



Viewing all articles
Browse latest Browse all 21975

Trending Articles



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