Copy value of active cell down, as long as there is a value in column E

Posted on 2014-08-20
Last Modified: 2014-08-20
Title of question is it.  I have a active cell with a value that I need to copy down that column as long as there is a value in column E.  There will always be a value in column E, but it does not go down the whole dataset, only part of the way.

Active cell is column B,  how do I tell it to check offset 3 columns to the right and figure out how many contiguous cells with data, (xlDown) there is from there down, so I can copy then copy my original active cell down that many times?

Then ending on the offset 3 to the right of original cell?
Question by:RWayneH
    LVL 33

    Accepted Solution

    Try this.
    ActiveCell.Copy Range(ActiveCell, Cells(Rows.Count, "E").End(xlUp).Offset(, -3))

    Open in new window


    Author Comment

    Worked but it copied it down, one past the bottom, so it added one.  Can we reduce that by one?

    Author Comment

    Never mind after test it further it worked.  Thanks.

    Author Closing Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
    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…
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 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

    20 Experts available now in Live!

    Get 1:1 Help Now