Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

altering data labels scatter

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Altering data labels on scatter chart

Altering data labels on scatter chart

ResolvedVersion 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 courses

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Shortcut fill a cell with contents from adjacent cells

Use Control + D to fill a cell with the data from an adjacent cell. This speeds up data entry and is a cool tip to share!


View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.