Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
medicenpringles
 
Posts: n/a
Default referencing lines and series points


what is the VBA code for referencing to individual points in a line on a
line graph? i would like to create a macro to change indiviual points'
shapes and the color or the lines in between them to different colors
depending on different parameters. is this possible?


--
medicenpringles


------------------------------------------------------------------------
medicenpringles's Profile: http://www.excelforum.com/member.php...o&userid=16458
View this thread: http://www.excelforum.com/showthread...hreadid=391019

  #2   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

The Macro Recorder is useful for tasks like this. Giving you an insight
into the objects and properties needed.

Sub Macro2()
'
' change the line between points and 4 to red
'
ActiveChart.SeriesCollection(1).Select
ActiveChart.SeriesCollection(1).Points(4).Select
With Selection.Border
.ColorIndex = 3
.Weight = xlThin
.LineStyle = xlContinuous
End With
'
' change marker to red circle black border size 10
'
With Selection
.MarkerBackgroundColorIndex = 3
.MarkerForegroundColorIndex = 1
.MarkerStyle = xlCircle
.MarkerSize = 10
.Shadow = False
End With
ActiveChart.PlotArea.Select
End Sub


Cheers
Andy

medicenpringles wrote:
what is the VBA code for referencing to individual points in a line on a
line graph? i would like to create a macro to change indiviual points'
shapes and the color or the lines in between them to different colors
depending on different parameters. is this possible?



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
How do I change a data series from bars to lines in an Excel char. mrocke Charts and Charting in Excel 1 March 29th 05 01:41 AM
Chart REALLY needs to support more than 255 data series Graham Wideman Charts and Charting in Excel 5 March 4th 05 01:45 PM
determining (and displaying) slopes that exceed x JZip Charts and Charting in Excel 8 January 10th 05 05:21 PM
Newbie to charts question - projecting values between data points 38N90W Excel Discussion (Misc queries) 3 January 6th 05 05:15 AM
Excell Chart-how do I change all the lines and points without cha. ct Charts and Charting in Excel 3 December 14th 04 12:54 AM


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