Set Range to a single column of a dynamic Range

Posted on 2012-08-20
Last Modified: 2012-08-20
How do I grab a column of a dynamic range:
Set rng = index(  mySourceDynamic,, 2).cells


So for the second column of the dynamic range (C4:C19), setting a range to it, so that many things could be done to it…

Thank you
Question by:Rayne
    LVL 39

    Accepted Solution


    set rng=range("mySourceDynamic").columns(1)

    as in

    range("mySourceDynamic").columns(2).copy cells(5,8)
    LVL 24

    Assisted Solution

    OK, my fist advice... use Tables rather than named ranges.

    Just highlight all your data anmd select Insert > Table

    Then you can select ranges etc without having to do the funky naming thing.

    Author Comment

    Thank you for your feedback folks :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
    No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
    This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now