Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Simple...Update Text Box in Chart

Hello,

I have a chart in an MS Excel worksheet and I would like to change the
value/caption of a textbox( Text Box 20).

I have only been able to change the title of the chart with the
following:

With MyChart.Workbooks(1).Worksheets("Chart").ChartObje cts(1).Chart
.HasTitle = True
.ChartTitle.Text = "Summary of Report" & date() 'Add
Today's Date
End With

Do I have to reference the chart or do I have to reference the textbox
itself?

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Simple...Update Text Box in Chart

Hi,

If the shape is actual embedded in the chart object then something like,

ActiveChart.Shapes("Text Box 20").TextFrame.Characters.Text = _
"Hello World"

If the shape is just over the chart then replace ActiveChart with
Activesheet

Cheers
Andy

Intui_Sol wrote:
Hello,

I have a chart in an MS Excel worksheet and I would like to change the
value/caption of a textbox( Text Box 20).

I have only been able to change the title of the chart with the
following:

With MyChart.Workbooks(1).Worksheets("Chart").ChartObje cts(1).Chart
.HasTitle = True
.ChartTitle.Text = "Summary of Report" & date() 'Add
Today's Date
End With

Do I have to reference the chart or do I have to reference the textbox
itself?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4
Default Simple...Update Text Box in Chart

Thank you very much! I knew I should have mentioned something about
shapes!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text label in x-axis (scatter chart) [email protected] Charts and Charting in Excel 2 June 20th 06 10:48 PM
Scatter chart with text labels as Y axis? Charles Blaquière Charts and Charting in Excel 2 June 2nd 06 04:37 AM
Chart title text linked from a cell? Possible? cwinters Excel Discussion (Misc queries) 2 October 10th 05 09:28 PM
Prevent non-numerical data (e.g. text) from plotting on a chart jaweiss Charts and Charting in Excel 1 March 19th 05 05:54 PM
Why do my text boxes disappear from my chart when I click out? Robboo Charts and Charting in Excel 1 November 27th 04 05:49 PM


All times are GMT +1. The time now is 07:40 AM.

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

About Us

"It's about Microsoft Excel"