+ Reply to Thread
Results 1 to 11 of 11

Populate from user form then copy & paste to another worksheet

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Populate from user form then copy & paste to another worksheet

    Hi, not sure if this would be possible but I currently have a user form which populates cells in worksheet 2, I would then want to copy rows sheet2 A1 to A18 and insert them into the next free row on sheet 1.
    Last edited by zimbo109; 04-24-2010 at 12:42 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate from user form then copy & paste to another worksheet

    Quote Originally Posted by zimbo109 View Post
    ....copy rows sheet2 A1 to A18 and insert them into the next free row on sheet 1.
    Try this:
    Please Login or Register  to view this content.

    If you want to put A1:A18 all onto one ROW on sheet1, then the data would need to be transposed:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: Populate from user form then copy & paste to another worksheet

    Thanks Jerry, will have a play with that, the first code is ideal. I'm not looking to transpose to one row.

    Regards
    Chris

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate from user form then copy & paste to another worksheet

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: Populate from user form then copy & paste to another worksheet

    The code at the moment pastes the copied rows into Sheet 1 is there a way I can INSERT them pushing all subsequent rows down?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate from user form then copy & paste to another worksheet

    Try this:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: Populate from user form then copy & paste to another worksheet

    This code does not find the next row now, and pastes the copied cells into A2?
    Last edited by zimbo109; 04-24-2010 at 09:59 AM. Reason: spelling

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate from user form then copy & paste to another worksheet

    Since I can't see your sheet and you're only half-asking your questions, I'm giving you basic enough answers that you will have to adjust them to work in your actual sheet.

    I've shown you how to copy a row of data to the end of the data set.
    I've shown you another way to insert.

    Now you can provide a sample workbook and a much more complete question, or you apply/adjust what you've been given. Yes?

  9. #9
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: Populate from user form then copy & paste to another worksheet

    Hi Jerry, I'm just looking to insert the copied data to the end of the data set. The first code you kindly gave works great however this solely pastes and I would like to Insert, I have tried for hours to change your first code to insert but my limited knowledge in VBA is not working!

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Populate from user form then copy & paste to another worksheet

    Merging the two suggestions into one:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: Populate from user form then copy & paste to another worksheet

    Perfect! Thank you.

+ 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