LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem formatting series in VBA


Hi,

I've created a sub that creates a series on a chart. The problem is
that I have some problems formatting the series. Like changing color
or type of series.

Here's my sub:


Code:
--------------------


Sub DrawSeriesFromWorkBook(chrt As Chart, szName As String, Optional lColor As Long)

Dim sSeries As Series

Set sSeries = chrt.SeriesCollection.NewSeries
sSeries.ChartType = xlXYScatterLinesNoMarkers

If (IsMissing(lColor)) Then
sSeries.Border.Color = RGB(0, 0, 0)
Else
sSeries.Border.Color = lColor
End If

sSeries.Values = "='" & ThisWorkbook.Name & "'!" & szName

End Sub


--------------------


I think my sub is Ok in a programmaticaly way, but since it is VBA


I would be happy, if someone can tell me what is wrong with this way to
format the series.

BTW: How do I count the number of point in ThisWorkBook.Names("ABC")??

Nick


--
El_Pablo
------------------------------------------------------------------------
El_Pablo's Profile: http://www.excelforum.com/member.php...o&userid=33129
View this thread: http://www.excelforum.com/showthread...hreadid=532614

 
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
Formatting a 4 Series Stock Chart Patty Charts and Charting in Excel 0 November 24th 09 11:12 PM
Fill down conditional formatting series gootroots Excel Worksheet Functions 7 November 18th 09 11:13 AM
formatting series Amin New Users to Excel 1 November 23rd 08 11:28 PM
formatting data series KRK Charts and Charting in Excel 0 March 24th 08 12:57 PM
Series Problem Mrinklin Charts and Charting in Excel 1 July 28th 05 11:52 PM


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