Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA chart range
Resolved · Low Priority · Version 2003
Babawande has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course
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.
Hi Babawande
Thanks 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")
|
Excel tip:Jumping Across the Excel ScreenPgDn and PgUp keys scrolls up and down a screen page in most applications. |
We'll call during UK business hours
Server loaded in 0.07 secs.