D
donbexcel
I'm trying to align a TextBox shape .left and .top value with a MSChart
SeriesCollection DataLabel .top and .left value and it's not working.
This is what the code looks like: shpTextBox.Left =
chtChart.SeriesCollection("Honda").DataLabels(1).Left. I discovered this
when I redirected the Excel VBA code to place the objects over the MSGraph
charts in PowerPoint rather then similar charts in Excel. It works with
Excel charts.
The .left and .top values for the MSCharts objects is way off. Even:
shpTextBox.Left = chtChart.ChartArea.Width + chtChart.ChartArea.Left doesn't
align the TextBox with the edge of the chart area.
Has anyone successfully done anything like this?
I'm calculating a ratio by dividing the Chart Area Height by the Slide
Master Height to get the ratio for Top and I'm dividing the Chart Area Width
by the Slide Master Width to get the ratio for Left. It's not perfect. Is
there a more accurate way of doing this?
Regards,
Don Buchanan
SeriesCollection DataLabel .top and .left value and it's not working.
This is what the code looks like: shpTextBox.Left =
chtChart.SeriesCollection("Honda").DataLabels(1).Left. I discovered this
when I redirected the Excel VBA code to place the objects over the MSGraph
charts in PowerPoint rather then similar charts in Excel. It works with
Excel charts.
The .left and .top values for the MSCharts objects is way off. Even:
shpTextBox.Left = chtChart.ChartArea.Width + chtChart.ChartArea.Left doesn't
align the TextBox with the edge of the chart area.
Has anyone successfully done anything like this?
I'm calculating a ratio by dividing the Chart Area Height by the Slide
Master Height to get the ratio for Top and I'm dividing the Chart Area Width
by the Slide Master Width to get the ratio for Left. It's not perfect. Is
there a more accurate way of doing this?
Regards,
Don Buchanan