Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA chart range
VBA chart range
Resolved · Low Priority · Version 2003
VBA chart range
Please I will glad if you help me with this problem, how can i use VBA to plot a chart where the X and Y axes are not side by side on a dataset/spreadsheet? Thats the column containing the X axis data is not beside the column containing Y axis data.For upcoming training course dates see: Pricing & availability
RE: VBA chart range
Hi BabawandeThanks for your question
The code for sourcing non contiguous ranges involves listing each separate range, separated by a comma. An example is given below.
aChart.SetSourceData Source:=Range("Sheet1!$B$2:$C$4,Sheet1!$E$2:$E$4")Hope this helps
Regards
Stephen
RE: VBA chart range
Hi StephenThanks a lot.
Regards
Wande
|
|
» Forum post: Using data tables to project values |



Course updates

