Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]() A qualified success! I got the graphs working with the code below. They align their axes perfectly and are within 2 pixels of being the same size. Best I can do. The disadvantage is that, because after each one of the hundreds of resizes performed, the graph is redrawn, which results in a slow (but fun-looking) execution. Code: -------------------- ' *** WIDTH ChartObjects(1).Chart.PlotArea.Width = 10 For i = 0 To 300 Range("A2").Value = i ChartObjects(1).Chart.PlotArea.Width = ChartObjects(1).Chart.PlotArea.Width + 1 If (Abs(ChartObjects(2).Chart.PlotArea.InsideWidth - ChartObjects(1).Chart.PlotArea.InsideWidth) < 2) Then Exit For End If Next i ' *** HORIZONTAL OFFSET ChartObjects(1).Chart.PlotArea.Left = 10 For i = 0 To 100 Range("A1").Value = i ChartObjects(1).Chart.PlotArea.Left = ChartObjects(1).Chart.PlotArea.Left + 1 If (ChartObjects(1).Chart.PlotArea.InsideLeft = ChartObjects(2).Chart.PlotArea.InsideLeft) Then Exit For End If Next i -------------------- -- F*SH ------------------------------------------------------------------------ F*SH's Profile: http://www.excelforum.com/member.php...o&userid=36355 View this thread: http://www.excelforum.com/showthread...hreadid=561383 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple Graphs - Resize All | Excel Discussion (Misc queries) | |||
Multiple Graphs | Excel Discussion (Misc queries) | |||
Resize Multiple Graphs at Once | Excel Discussion (Misc queries) | |||
How do I put multiple graphs on one axis? | Charts and Charting in Excel | |||
graphs from multiple worksheet : query | Charts and Charting in Excel |