Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel and chart problem.
Message
From
17/07/2000 10:30:58
 
 
To
14/07/2000 17:19:11
General information
Forum:
Visual Basic
Category:
VBA
Miscellaneous
Thread ID:
00392708
Message ID:
00393270
Views:
15
>I'm trying to produce some charts and I keep getting the following error message whenever I try to had a title to my chart:
>
>Method 'HasTitle' of object '_Chart' failed
>
>Here is a sample of my code:
>
>:With ActiveChart
>: .Location Where:=xlLocationAsNewSheet
>: .Type = xlColumn
>: .HasTitle = True
>: .ChartTitle = "Chart for marker #" + conv(num)
>: .SetSourceData PlotBy:=xlColumns, Source:=m_range
>: For colonne = 1 To nb_columns
>: .SeriesCollection(colonne).Name = Sheets("Data").Cells(depart, 2 * colonne + 3).Value
>: Next
>:End With
>
>Am I the simple victim of yet another infamous MS bug or is the problem 10" in front of the screen (again)?
>
>Thanks, Steph.

This is a shot in the dark: Set the title before you say it has one. Maybe it creates a Device context on the fly or for some other reason you cant change it once it 'has' one.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform