+ Reply to Thread
Results 1 to 5 of 5

Copy values from cell in active row, paste in first empty cell in spesified column.

  1. #1
    Registered User
    Join Date
    02-12-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007, 2013
    Posts
    89

    Copy values from cell in active row, paste in first empty cell in spesified column.

    I tried solving this myself but my VBA knowledge is limited. I've attached a dummy workbook to explain in more detail.

    NOTE: When I say "copy - paste", it's not neccessary to actually copy and paste... "x.value = x.value" will do.

    Thanks guys.
    Attached Files Attached Files
    Last edited by Test123Test; 02-19-2012 at 05:22 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy values from cell in active row, paste in first empty cell in spesified colum

    hi Test123Test, sort of that:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-12-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007, 2013
    Posts
    89

    Re: Copy values from cell in active row, paste in first empty cell in spesified colum

    Quote Originally Posted by watersev View Post
    hi Test123Test, sort of that:

    Please Login or Register  to view this content.
    This works just as I wanted, thanks a lot!
    However I figured I need to rearrange the Worksheet a bit. Is there a way to make the BM show up in BW, BQ in BX and BU in BV?

    Thanks again

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy values from cell in active row, paste in first empty cell in spesified colum

    Please Login or Register  to view this content.
    explanation:
    .Offset(0) - active row BM cell value
    .Offset(, 4) - active row BQ cell value
    .Offset(, 8) - active row BU cell value

    You can change their order to achive different values placement

  5. #5
    Registered User
    Join Date
    02-12-2012
    Location
    Oslo, Norway
    MS-Off Ver
    Excel 2007, 2013
    Posts
    89

    Re: Copy values from cell in active row, paste in first empty cell in spesified colum

    Alright that works neatly, thanks again for all the help, it's much appreciated
    Cheers

+ 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