Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Charting Problem VBA

If there's nothing below the data range in the three columns, this works:

Sub MakeAChart()
Charts.Add
ActiveChart.ChartType = xlLineMarkers
With Sheets("Sheet1")
ActiveChart.SetSourceData _
Source:=.Range(.Range("O9"), .Range("Q5000").End(xlUp))
End With
ActiveChart.Location Whe=xlLocationAsObject, Name:="Sheet1"
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

John R wrote:
Hi all, I hope somebody can help me !

How would I generate a chart from a varying source range,
which needs to include two different series? using VBA.
Now problem is, the table allows the user to insert and
delete rows from the source range, so how would a macro
recognise that the source had changed and then generate a
bar chart

My first SERIES = SERIES(,calculations!
$O$9:$O$20,calculations!$P$9:$P$20,1), and my second =

=SERIES (, calculations! $O$9: $O$20,calculations! $Q$9:
$Q$20,2),

where the range in "O", contains the dates., and P & Q
contain values generated by formula.

Thanks all for your help

John R



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
Excel Charting Problem Gemini Excel Discussion (Misc queries) 2 April 14th 08 06:55 PM
Problem with Excel Charting ... Please Help zoddiax Charts and Charting in Excel 1 October 11th 07 07:58 PM
CSV Charting Problem Quicksilver2002 Charts and Charting in Excel 1 June 6th 06 06:58 PM
Simple Bar Charting Problem: Would Sure Appreciate Some Help On This Robert11 Charts and Charting in Excel 1 March 9th 06 12:03 AM
Excel Charting problem.. Alex Excel Discussion (Misc queries) 1 August 5th 05 01:57 PM


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