Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating Non-Contiguous Cell Ranges

1 view
Skip to first unread message

marsto...@mac.com

unread,
Sep 5, 2004, 6:56:05 PM9/5/04
to
Can someone explain how you take specific cells from a parent range
and create a non-contiguous child range that uses some of the cells
from the parent range?

Tom Ogilvy

unread,
Sep 5, 2004, 7:20:41 PM9/5/04
to
set rng = Range("A1,A3,A5,A7")

rng.Name = "Child1"

or
set rng = Range("A1")
for i = 3 to 11 step 2
set rng = union(rng,cells(i,1))
Next
rng.Name = "Child1"

any method would depend on how you are choosing/identifying the subset.

--
Regards,
Tom Ogilvy


"marsto...@alaskaair.com" <marsto...@mac.com> wrote in message
news:chg5i5$a...@odak26.prod.google.com...

marsto...@mac.com

unread,
Sep 5, 2004, 9:53:51 PM9/5/04
to
Thanks Tom - I think I have enough now to see if I can make things
work. I'm heading in to work tomorrow - no time off for me
unfortunately..... I'll let you know.

0 new messages