Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
colleen91076
 
Posts: n/a
Default Can I format data lines in multiple charts?

Can I format a data series in multiple charts without doing it individually?
For example: I have a woorkbook with 50 charts, and each has the same X/Y
axes, and each chart has multiple lines for 1999, 2000, 2001, 2002, etc. Can
I format one data series, i.e. year 1999 in Chart A and have Excel
auto-format all other 1999 series (charts B-Z) to match it?
  #2   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

The closet thing you will get without resorting to VBA code is the F4
button. Format 1999 series in one chart and then select it in another
chart and press F4. Trouble is thats still 49 selections and then repeat
that for each of the years!

Here is the start of a macro. This will turn the first data series in
all charts on the activesheet red, or what ever colour you have mapped
in colorindex 3.
Turn on the recorder whilst you format a line and see if you can insert
you code in to this example.

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 10/7/2005 by Andy Pope
'
Dim objCht As ChartObject
'
For Each objCht In ActiveSheet.ChartObjects
With objCht.Chart
With .SeriesCollection(1)
With .Border
.ColorIndex = 3
.Weight = xlThin
.LineStyle = xlContinuous
End With
.MarkerBackgroundColorIndex = 3
.MarkerForegroundColorIndex = 3
.MarkerStyle = xlDiamond
.Smooth = False
.MarkerSize = 5
.Shadow = False
End With
End With
Next
End Sub

Cheers
Andy

colleen91076 wrote:
Can I format a data series in multiple charts without doing it individually?
For example: I have a woorkbook with 50 charts, and each has the same X/Y
axes, and each chart has multiple lines for 1999, 2000, 2001, 2002, etc. Can
I format one data series, i.e. year 1999 in Chart A and have Excel
auto-format all other 1999 series (charts B-Z) to match it?


--

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
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
Putting data from multiple worksheets into one Teffy Excel Discussion (Misc queries) 3 July 16th 05 08:52 AM
Question about combining data from multiple workbooks into one rep BookOpenandUpright Excel Discussion (Misc queries) 2 February 19th 05 12:37 PM
Changing the format of a block of data Greg Excel Discussion (Misc queries) 0 January 23rd 05 02:30 AM
Newbie to charts question - projecting values between data points 38N90W Excel Discussion (Misc queries) 3 January 6th 05 05:15 AM


All times are GMT +1. The time now is 12:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"