+ Reply to Thread
Results 1 to 4 of 4

Copy rows

Hybrid View

scott micklo Copy rows 12-28-2015, 01:29 PM
LeoTaxi Re: Copy rows 12-28-2015, 02:47 PM
scott micklo Re: Copy rows 12-28-2015, 03:51 PM
LeoTaxi Re: Copy rows 12-28-2015, 05:31 PM
  1. #1
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Copy rows

    Hi

    I am looking, based upon a number in cell B2, to copy the entire row, off my source sheet, on to the next available row a sheet that was named in B2,

    Thanks

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy rows

    For the active row

    Sub test()
    my_sheet = Range("B2")
    ActiveCell.EntireRow.Copy Sheets(my_sheet).Range("A" & Rows.Count).End(xlUp).Offset(1)
    End Sub
    Kind regards
    Leo

  3. #3
    Forum Contributor
    Join Date
    07-08-2015
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Copy rows

    Leo

    Thanks so much for the assistance. One more question-- how do I get this to run for all values listed in B2? There are currently 32 different values

    Thanks

    scott

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Copy rows

    I thought it was a sheet name in B2
    and the code copy the active row to that sheet

    and wat you meen by 32 different valeus ? all in B2 ?


    Kind regards

+ 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. [SOLVED] VBA Split Cell Contents to New Rows & Copy Cells containing single values to the new rows
    By jaimelwilson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2017, 05:30 PM
  2. [SOLVED] Insert Rows on Criteria and Copy content to Specific Cells in New Rows(Tables)
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2015, 03:38 PM
  3. Macro copies rows based on condition, BUT rows copy in Wrong order. PLEASE HELP!
    By JAllard1990 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2014, 04:33 PM
  4. [SOLVED] Identify duplicate rows and copy/Paste the first cell to all cells of equal rows
    By vs5 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-15-2014, 06:31 AM
  5. Copy the employee Ids to subsequent rows (approx 30 rows) using macro - Roster Type
    By Keerthi Raj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-21-2013, 01:10 AM
  6. Replies: 0
    Last Post: 05-10-2013, 12:04 PM
  7. [SOLVED] Insert Multiple Rows Based Off Number in Cell and Copy Data From Above New Rows
    By tstell1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2012, 04:15 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