PC Review


Reply
Thread Tools Rate Thread

Charttitle.Text crashes (Excel 2000)

 
 
blackno666
Guest
Posts: n/a
 
      9th Nov 2006
Hi,

when I try to run the following code (on an existing diagram):

With ActiveChart
Dim globalLstFile as String
globalLstFile = "02 KOBA_XYZ_C3-06214 02- 20.7-20.8°C Touchprobe
Mittelpunkte.lst"

.HasTitle = True
.ChartTitle.Text = "KOBA Sphere Gauge S/N 38 538 (" + globalLstFile +
")" & Chr(10) & _
"color coding: red = Zone 1, green = Zone 2, blue = Zone 3"&
Chr(10) & _
"light color: measurements that contain spheres that are
within 20 cm of the edge of the measurement volume"
....

Excel returns with the error 1004. However, if I set globalLstFile to
"test", then the code runs just fine. I did not find any limitation on
..ChartTitle.Text, but I am suspecting that it is limitied to a certain
number of characters or does not allow special characters.

Any enlightment would be greatly appreciated (sorry for the horrible
formatting of this text).
Blackno666.

 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      9th Nov 2006
Hi,

The chart title is restricted to 255 characters. Try manually typing in
a very long string. At 255 it will start to bleep.

Either use an embedded textbox.
Or use both chart title and axis title.

Cheers
Andy

blackno666 wrote:
> Hi,
>
> when I try to run the following code (on an existing diagram):
>
> With ActiveChart
> Dim globalLstFile as String
> globalLstFile = "02 KOBA_XYZ_C3-06214 02- 20.7-20.8°C Touchprobe
> Mittelpunkte.lst"
>
> .HasTitle = True
> .ChartTitle.Text = "KOBA Sphere Gauge S/N 38 538 (" + globalLstFile +
> ")" & Chr(10) & _
> "color coding: red = Zone 1, green = Zone 2, blue = Zone 3" &
> Chr(10) & _
> "light color: measurements that contain spheres that are
> within 20 cm of the edge of the measurement volume"
> ...
>
> Excel returns with the error 1004. However, if I set globalLstFile to
> "test", then the code runs just fine. I did not find any limitation on
> .ChartTitle.Text, but I am suspecting that it is limitied to a certain
> number of characters or does not allow special characters.
>
> Any enlightment would be greatly appreciated (sorry for the horrible
> formatting of this text).
> Blackno666.
>


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007: get formula from charttitle be_675@hotmail.com Microsoft Excel Charting 1 7th Feb 2008 07:40 PM
Unable to set text property of the Charttitle class Laurel Microsoft Access Form Coding 14 25th Jun 2007 04:33 AM
VBA: Can't set ChartTitle.Text?? Ed Microsoft Excel Charting 1 4th Oct 2006 12:59 AM
2007 Bug? ChartTitle.Characters.Text not working =?Utf-8?B?THljYW5nZWVr?= Microsoft Excel Programming 2 21st Jun 2006 07:57 PM
Text Box crashes Excel 2000 =?Utf-8?B?QW5kcmV3IEJhaWxleQ==?= Microsoft Excel Crashes 1 10th Nov 2005 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 PM.