98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Altering data labels on scatter chart
Altering data labels on scatter chart
Resolved · Medium Priority · Version 2007
Emma has attended:
Access Introduction course
Altering data labels on scatter chart
Hi,
I am writing some code to automatically change and update a scatter chart when a different selection is chosen from a combo box.
I have the chart updating the refences for each series but I now need to add data labels to each point and change them from value to text. The cell for the text is already selected in the data selection.
I have managed to add the data labels but have run into problems when I try to change it. I have used code from a macro I recorded and slightly adapted to fit what I need.
The code I have is;
Dim j as Integer
Do
ActiveSheet.ChartObjects("Chart 5").Activate
ActiveChart.SeriesCollection(j).Select
ActiveSheet.ChartObjects("Chart 5").Activate
ActiveChart.SeriesCollection(j).ApplyDataLabels
ActiveSheet.ChartObjects("Chart 5").Activate
ActiveChart.SeriesCollection(j).datalabels.Select
ActiveSheet.ChartObjects("Chart 5").Activate
**Selection.ShowValue = False
**Selection.ShowSeriesName = True
j = j + 1
Loop
Error occurs where I have put **.
Can anybody help??
Many Thanks!
RE: altering data labels on scatter chart
Hello Emma
Thank you for your question.
As we have been experiencing a high volume of posts in the forum, it has become necessary for us to introduce a fair usage policy to ensure we are able to respond to delegate questions as quickly as possible.
The policy is visible when you log into your delegate account, on the Support Forum tab.
In accordance with the policy, we are able to respond to posts that are directly related to what is covered on the courses you have attended with us. Therefore we are able to assist you with queries relating to the content of the Access Introduction course, but not queries relating to VBA or other applications.
Kind regards
Amanda
Mon 13 Jul 2009: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Find cells that match a formatIn Excel you may wish to find cells that contain a specific formatting such s colour. |