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

Hello,
I have a chart where I want to add some information about the chart (like
average, etc.). I am doing this by adding a text box to the chart. I ran
into the problem that sometime the text box would appear and sometime it
would not. It appears that it will appear if there are less than 255
characters in the text box and not if there are more. Differences occur due
to rounding and different number of decimal places. Below is part of the
code I am using. Any reasons for this?

Thanks,

Bill


ActiveChart.TextBoxes.Add(ChWidth - 0.125 * ChWidth, Chtop - 0.1 * Chtop,
10, 10).Select

Selection.Name = "ds"

ActiveChart.Shapes("ds").Select



Selection.Characters.Text = "Info" & Chr(10) _

& "Sigma= " & Application.Round(SD, NDP) & Chr(10) _

& "Average=" & Application.Round(Xbar, NDP) & Chr(10) _

& "Min=" & Application.Round(MinHist, NDP) & Chr(10) _

& "Max=" & Application.Round(MaxHist, NDP) & Chr(10) _





Etc. etc.


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
change the text in the legend of a chart w/o changing pivot text msp Charts and Charting in Excel 2 December 17th 08 08:53 PM
How do I add text to a chart? laidebug Charts and Charting in Excel 1 July 28th 08 09:06 PM
Chart Text Box Bengt Charts and Charting in Excel 10 February 4th 08 04:40 PM
Text box to chart steve_sr2 Charts and Charting in Excel 1 January 29th 08 09:05 PM
Chart using text? PG Oriel Excel Programming 1 February 7th 06 03:05 PM


All times are GMT +1. The time now is 06:33 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"