+ Reply to Thread
Results 1 to 5 of 5

Code to copy nnon adjecent rows to another sheet

  1. #1
    Registered User
    Join Date
    10-13-2011
    Location
    Jozi, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    93

    Code to copy nnon adjecent rows to another sheet

    Hi all,

    I am struggling with code that would allow a user to select non adjacent rows and move them to another sheet.

    In essence, a user can select any cell in a given row (Lets say row B3), select another cell in another row (H7) from sheet 1 (There could be more cells selected), then click a button on sheet 1 and have Excel automatically copy and paste columns A to R from each line to the next available line on sheet 2.

    The button already exists. just need the code behind the button.

    Any help would be greatly appreciated as always.

    Reg

    Kev.
    ***------ Coding for Fun ------***

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Code to copy nnon adjecent rows to another sheet

    Select all your cells and try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    10-13-2011
    Location
    Jozi, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Code to copy nnon adjecent rows to another sheet

    Thanks,

    Worked a treat. I forgot to mention that i need to then delete the rows from sheet 1. I modified the code thinking this owuld work, but the last selected line does not delete.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-13-2011
    Location
    Jozi, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    93

    Re: Code to copy nnon adjecent rows to another sheet

    sorted, used:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Code to copy nnon adjecent rows to another sheet

    Glad it worked out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Code Help PLS: Find Last Record on Sheet and Copy it Multiple TImes to Rows in Another
    By fadilrexhepi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2015, 08:33 AM
  2. [SOLVED] How to write a code within a loop to copy and paste rows on to another Sheet
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-24-2014, 08:40 PM
  3. VBA code to copy rows to another sheet and sumup its columns
    By patua in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2014, 11:59 AM
  4. Replies: 2
    Last Post: 11-05-2012, 09:28 AM
  5. Replies: 5
    Last Post: 05-23-2012, 10:33 AM
  6. VBA code: copy rows to another sheet and show all related result
    By kamioza in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2010, 04:47 AM
  7. Replies: 2
    Last Post: 05-25-2006, 02:55 PM

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