ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Manipulate Text Boxes on Chart (https://www.excelbanter.com/excel-programming/429448-manipulate-text-boxes-chart.html)

Steve Haack

Manipulate Text Boxes on Chart
 
I habe a chart that I created manually, and added several text boxes to.
These text boxes, each point to different cells as the source of the text
they display.

I want to be able to change the cell they point to in vb, but I am not sure
how to refer to each one individually.

Any examples?

Thanks,
Steve

Jacob Skaria

Manipulate Text Boxes on Chart
 
Steve, If it is the linked cell try this

ViewToolbarsControlToolbox.
On toolbar click on Design mode (button on left top)
Right click on the text box controlProperties
Check the property called 'Linked Cell'
Change the cell reference.

If this post helps click Yes
---------------
Jacob Skaria


"Steve Haack" wrote:

I habe a chart that I created manually, and added several text boxes to.
These text boxes, each point to different cells as the source of the text
they display.

I want to be able to change the cell they point to in vb, but I am not sure
how to refer to each one individually.

Any examples?

Thanks,
Steve


Peter T

Manipulate Text Boxes on Chart
 
ActiveChart.TextBoxes(1).Formula = "=Sheet1!$A$1"

Regards,
Peter T

"Steve Haack" wrote in message
...
I habe a chart that I created manually, and added several text boxes to.
These text boxes, each point to different cells as the source of the text
they display.

I want to be able to change the cell they point to in vb, but I am not
sure
how to refer to each one individually.

Any examples?

Thanks,
Steve




Peter T

Manipulate Text Boxes on Chart
 
ActiveChart.TextBoxes(1).Formula = "=Sheet1!$A$1"

Regards,
Peter T

"Steve Haack" wrote in message
...
I habe a chart that I created manually, and added several text boxes to.
These text boxes, each point to different cells as the source of the text
they display.

I want to be able to change the cell they point to in vb, but I am not
sure
how to refer to each one individually.

Any examples?

Thanks,
Steve





All times are GMT +1. The time now is 10:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com