A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Annotate Chart with Text Boxes



 
 
Thread Tools Display Modes
  #1  
Old March 21st, 2009, 03:17 PM posted to microsoft.public.excel.charting
Pete[_22_]
external usenet poster
 
Posts: 19
Default Annotate Chart with Text Boxes

I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?

Thanks

Pete
  #2  
Old March 22nd, 2009, 11:57 AM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default Annotate Chart with Text Boxes

Hi,

Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.

Cheers
Andy

Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?

Thanks

Pete


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3  
Old March 22nd, 2009, 02:23 PM posted to microsoft.public.excel.charting
Pete[_22_]
external usenet poster
 
Posts: 19
Default Annotate Chart with Text Boxes

On Mar 22, 11:57*am, Andy Pope wrote:
Hi,

Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.

Cheers
Andy

Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--

Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.
  #4  
Old March 22nd, 2009, 04:06 PM posted to microsoft.public.excel.charting
Jon Peltier
external usenet poster
 
Posts: 5,018
Default Annotate Chart with Text Boxes

That's what Andy was referring to, by "calculating their position".

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message
...
On Mar 22, 11:57 am, Andy Pope wrote:
Hi,

Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.

Cheers
Andy

Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--

Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.


  #5  
Old March 23rd, 2009, 07:44 PM posted to microsoft.public.excel.charting
Pete[_22_]
external usenet poster
 
Posts: 19
Default Annotate Chart with Text Boxes

On Mar 22, 4:06*pm, "Jon Peltier"
wrote:
That's what Andy was referring to, by "calculating their position".

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______

"Pete" wrote in message

...
On Mar 22, 11:57 am, Andy Pope wrote:





Hi,


Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.- Hide quoted text -

- Show quoted text -


Hi,

Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.

Thanks

Peter
  #6  
Old March 23rd, 2009, 10:19 PM posted to microsoft.public.excel.charting
Jon Peltier
external usenet poster
 
Posts: 5,018
Default Annotate Chart with Text Boxes

Why don't you top post like everyone else, so it's easier to find what you
have written?

Andy said it "would require" VBA to keep the labels in position. But if you
use data labels it wouldn't.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message
...
On Mar 22, 4:06 pm, "Jon Peltier"
wrote:
That's what Andy was referring to, by "calculating their position".

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______

"Pete" wrote in message

...
On Mar 22, 11:57 am, Andy Pope wrote:





Hi,


Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.-
Hide quoted text -

- Show quoted text -


Hi,

Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.

Thanks

Peter


  #7  
Old March 24th, 2009, 08:51 AM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default Annotate Chart with Text Boxes

Hi,

Here is a simple coded approach to the problem if using data labels alone is
not sufficient for the formatting of your annotation.

Start by adding a dummy series to the chart. Make sure the Series name is
blank or a single space.
Use the same values as the main series. Apply data labels to this series.
The Left and Top property of the data labels can now be used to re-position
textboxes.

Sub Demo()

Dim chtTemp As Chart
Dim shpTemp As Shape

With ActiveSheet.ChartObjects(1).Chart
Set shpTemp = .Shapes("Text Box 1")
With .SeriesCollection(2).DataLabels(3)
shpTemp.Left = .Left
shpTemp.Top = .Top
End With
End With

End Sub

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Pete" wrote in message
...
On Mar 22, 4:06 pm, "Jon Peltier"
wrote:
That's what Andy was referring to, by "calculating their position".

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______

"Pete" wrote in message

...
On Mar 22, 11:57 am, Andy Pope wrote:





Hi,


Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.-
Hide quoted text -

- Show quoted text -


Hi,

Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.

Thanks

Peter

  #8  
Old March 24th, 2009, 09:05 AM posted to microsoft.public.excel.charting
Pete[_22_]
external usenet poster
 
Posts: 19
Default Annotate Chart with Text Boxes

Sorry Jon, didn't realise I was doing anything wrong, I just hit the
Reply Button. I thought Data Labels were just a copy of the Values
used for the Chart. I didn't realise you could Edit them.

Peter


On 23 Mar, 22:19, "Jon Peltier"
wrote:
Why don't you top post like everyone else, so it's easier to find what you
have written?

Andy said it "would require" VBA to keep the labels in position. But if you
use data labels it wouldn't.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______

"Pete" wrote in message

...
On Mar 22, 4:06 pm, "Jon Peltier"
wrote:





That's what Andy was referring to, by "calculating their position".


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message


...
On Mar 22, 11:57 am, Andy Pope wrote:


Hi,


Textboxes by themselves will not track your monthly data. For that you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.-
Hide quoted text -


- Show quoted text -


Hi,

Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.

Thanks

Peter- Hide quoted text -

- Show quoted text -


  #9  
Old March 24th, 2009, 09:28 AM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default Annotate Chart with Text Boxes

Check out Rob's free add-in which will link data labels to cell text.
http://www.appspro.com/Utilities/ChartLabeler.htm

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Pete" wrote in message
...
Sorry Jon, didn't realise I was doing anything wrong, I just hit the
Reply Button. I thought Data Labels were just a copy of the Values
used for the Chart. I didn't realise you could Edit them.

Peter


On 23 Mar, 22:19, "Jon Peltier"
wrote:
Why don't you top post like everyone else, so it's easier to find what
you
have written?

Andy said it "would require" VBA to keep the labels in position. But if
you
use data labels it wouldn't.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______

"Pete" wrote in message

...
On Mar 22, 4:06 pm, "Jon Peltier"
wrote:





That's what Andy was referring to, by "calculating their position".


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message


...
On Mar 22, 11:57 am, Andy Pope wrote:


Hi,


Textboxes by themselves will not track your monthly data. For that
you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I
have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be
automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart.-
Hide quoted text -


- Show quoted text -


Hi,

Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.

Thanks

Peter- Hide quoted text -

- Show quoted text -



  #10  
Old March 24th, 2009, 09:41 PM posted to microsoft.public.excel.charting
Pete[_22_]
external usenet poster
 
Posts: 19
Default Annotate Chart with Text Boxes

Thanks, will give it a try.
Peter

On Mar 24, 9:28*am, "Andy Pope" wrote:
Check out Rob's free add-in which will link data labels to cell text.http://www.appspro.com/Utilities/ChartLabeler.htm

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info"Pete" wrote in message

...



Sorry Jon, didn't realise I was doing anything wrong, I just hit the
Reply Button. I thought Data Labels were just a copy of the Values
used for the Chart. I didn't realise you could Edit them.


Peter


On 23 Mar, 22:19, "Jon Peltier"
wrote:
Why don't you top post like everyone else, so it's easier to find what
you
have written?


Andy said it "would require" VBA to keep the labels in position. But if
you
use data labels it wouldn't.


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message


....
On Mar 22, 4:06 pm, "Jon Peltier"
wrote:


That's what Andy was referring to, by "calculating their position".


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.http://PeltierTech.com/WordPress/
_______


"Pete" wrote in message


...
On Mar 22, 11:57 am, Andy Pope wrote:


Hi,


Textboxes by themselves will not track your monthly data. For that
you
would need to use data labels.
To update the textboxes would require VBA code to calculate there
position in relation to the chart and the data.


Cheers
Andy


Pete wrote:
I have some charts that are annotated with Text Boxes that line up
with that Months data. If I add extra months to the Chart then I
have
to move all the Text boxes along a little to the left to remain
matched up with the Data it corresponds to, can this be
automatically
done?


Thanks


Pete


--


Andy Pope, Microsoft MVP - Excelhttp://www.andypope.info


Andy,
I think I've misled you. I don't want to update the Text in the Text
Boxes I just want them to remain lined up with the Month that they
correspond to when extend the Range of the Source Data for the Chart..-
Hide quoted text -


- Show quoted text -


Hi,


Don't suppose you could give an example of the code required or know
where there is an example. VBA is not my strong point.


Thanks


Peter- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.