+ Reply to Thread
Results 1 to 4 of 4

Copy list contents down, then clear contents

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    Copy list contents down, then clear contents

    I have a table with drop down boxes/lists and formulas in certain columns which I'd like to copy down when a new row is added to the table. For whatever reason, Excel will not copy down these formulas and lists on a consistent basis. As a result, I've turned to VBA to help address this issue. I'm using the following code, which is modified from code provided to me for another worksheet by jaslake:

    Please Login or Register  to view this content.
    This does exactly as it was intended to do on the other worksheet - it copies the contents from the row prior down to the new row. The problem is, unlike the worksheet for which this code was originally written, in which it was all formulas being copied down, this worksheet has lists/drop-downs being copied down, and as a result it is taking the actual value from the cell above and copying it into the new cell.

    1) Is there a way to copy only the drop-down list from the cell above, and not the value?
    2) If not, how would I modify the above code to clear the value of each cell after the drop-down list and value are copied down, without clearing the drop-down box?

    Thank you in advance.

    Adam
    Last edited by hektisk; 04-07-2011 at 04:30 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy list contents down, then clear contents

    Hi Adam
    I remember your project well...we struggled with that for a while didn't we.

    I don't recall the specific code you referenced but it seems to me you could do something like this after you've done your copy/paste
    Please Login or Register  to view this content.
    This is not tested. You could probably put this in one line of code if you can wrap your head around it.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Copy list contents down, then clear contents

    Thank you as always!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Copy list contents down, then clear contents

    Glad to help. You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1