Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the recent, cancelled question I asked Dave Peterson
how to select the range for later defining SeriesCollection in the xy-chart: With ActiveSheet Set Rng1 = .Range(.Range(.Cells(1, 2), .Cells(N, 2)), _ .Range(.Cells(1, 6), .Cells(N, 6))) End With It really worked well as far as the columns were contiguous. As soon as the columns were distant (as in the example), all the area was selected, and a number of excessive curves appeared. The problem is how to adapt the range definition so that only two relevant columns are taken. Many thanks to any adviser. Petr |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
you can use Union in VBA for this to combine to non contingenous ranges -- Regards Frank Kabel Frankfurt, Germany PBezucha wrote: In the recent, cancelled question I asked Dave Peterson how to select the range for later defining SeriesCollection in the xy-chart: With ActiveSheet Set Rng1 = .Range(.Range(.Cells(1, 2), .Cells(N, 2)), _ .Range(.Cells(1, 6), .Cells(N, 6))) End With It really worked well as far as the columns were contiguous. As soon as the columns were distant (as in the example), all the area was selected, and a number of excessive curves appeared. The problem is how to adapt the range definition so that only two relevant columns are taken. Many thanks to any adviser. Petr |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Limiting selection in a cell AND linking that selection to a list | Excel Discussion (Misc queries) | |||
Non-contiguous selection | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
Help : Code for selection non-contiguous cells | Excel Programming |