add extra label to chart based on dropdown box

Bobbrown

New Member
Joined
Jul 19, 2011
Messages
14
Hope I am asking this question in the right forum and apologies if there is an obvious answer that I have missed but don’t do a lot of charting.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I have a chart that makes up part of a dashboard. It displays Investment attracted against target (KPI). The data is cumulative and I need to add a label that links to a drop down list that the person inputting the data can select to identify the reporting period. This label will then display in the chart saying something like reporting date to ‘June 2011’ (taken form the drop down). I have done the dropdown list in the data sheet but cant figure how to add it to the chart in the chart sheet.
Any assistance would be appreciated.<o:p></o:p>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Thanks VoG.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I sit behind a network with no administrator rights so cant install anything and from previous experience our IT guys aren’t interested in anything that’s not standard issue. Thanks for your promt reply anyway.<o:p></o:p>
 
Upvote 0
Maybe change the chart title like this

Code:
Sub ChLabel()
With ActiveSheet.ChartObjects("Chart 1").Chart
    .HasTitle = True
    .ChartTitle.Text = Range("C1").Value
End With
End Sub
 
Upvote 0
Thanks VoG
Tried the marco but returned and error.
Run-time error 1004
"Unable to get the chartObjects of the worksheet class"
I not all that good at VBA so it might be something I am doing wrong.
 
Upvote 0
Thanks VoG<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Apologies for the delayed response but been enjoying a bit of R &R and been offline.<o:p></o:p>
Couldn’t get the macro to work so tried another option. <o:p></o:p>
As this is something I will only do once a month and I finish up doing a fair bit of work after hours from home I decided to install XY Labeller on my machine at home and work around it that way. Thanks again for the tip.<o:p></o:p>
<o:p></o:p>
TB.<o:p></o:p>
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,543
Members
452,924
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top