+ Reply to Thread
Results 1 to 6 of 6

Need to copy/paste selection between sheets, move to next column and repeat

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Pensacola, USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Exclamation Need to copy/paste selection between sheets, move to next column and repeat

    Hello everyone,

    Hoping someone can help me come up with something to fit my needs for a project I am working on.

    Cliff notes:
    -(Sheet1 C3:C11) existing template that generates config files that I simply fill in one customers info at a time right now, it spits out the proper config for that customer
    -(Sheet2) Want to import multiple customers one after the other from a separate sheet in the workbook, each customer owns a column with 9 cells each.

    I have an existing template/macro setup, we will call it (Sheet1) that has 9 cells that needs to be filled out, C3:C11. I need column data from a separate sheet in the same workbook(Sheet2), the data is arranged so that each "customer" is its own column, so for examples sake A1:A9 is a customer, B1:B9 is a customer etc on (Sheet2).

    I need a macro and a combo of button(s) that can take one column at a time with a fixed range(9 cells) at a time from (Sheet2) copy it, and paste it into (Sheet1 C3:C11), I then need to be able to press the button again or another button and it takes the NEXT column from (Sheet2) and repeat the process by overwriting whats in (Sheet1 C3:C11) from the last paste. So essentially I press button it grabs A1:A9 from (Sheet2) pastes into C3:C11 on (Sheet1), when I'm ready for the next customer, I press it again and it grabs B1:B9 from (Sheet2) pastes into C3:C11 on (Sheet1), etc it would be nice if it knew to skip blank columns on (Sheet2) but not 100% needed.

    Can someone assist? It would be very much appreciated, have over 250 customers to generate new configs for and this would speed this up tremendously. If you have any questions let me know I can reply quickly

    I have attached a sample stripped down version of the template setup with some fake data here Config_Multi_Generator.xlsm
    Last edited by jwats; 05-18-2015 at 02:19 PM. Reason: Added attachment

  2. #2
    Forum Contributor
    Join Date
    05-02-2015
    Location
    calgary alberta
    MS-Off Ver
    2012
    Posts
    205

    Re: Need to copy/paste selection between sheets, move to next column and repeat

    Can you post the workbook? People will have a better idea of what you need done

  3. #3
    Registered User
    Join Date
    01-13-2014
    Location
    Pensacola, USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to copy/paste selection between sheets, move to next column and repeat

    Good idea, thank you
    Last edited by jwats; 05-15-2015 at 10:12 AM.

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    Pensacola, USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to copy/paste selection between sheets, move to next column and repeat

    Hey guys, I uploaded a copy of the workbook to help, thank you again for anyone who can give it a shot

  5. #5
    Forum Contributor
    Join Date
    07-11-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    144

    Re: Need to copy/paste selection between sheets, move to next column and repeat

    Hi jwats,

    I have attached the solution. U can change the values by increasing or decreasing the scrollbar.

    Attachment: Config_Multi_Generator.xlsm

  6. #6
    Registered User
    Join Date
    01-13-2014
    Location
    Pensacola, USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Need to copy/paste selection between sheets, move to next column and repeat

    Great solution, worked out awesome, loved the scroll bar idea!

+ 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. move or copy row to other sheets based on cell selection
    By catherineburns in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-17-2015, 05:04 PM
  2. Move Paste Selection One column To the Right(Macro)
    By juhaszp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2013, 02:33 PM
  3. Macro - Copy/Paste certain cells and move down column and repeat
    By rohan87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2013, 02:02 AM
  4. Select cells, copy, paste, move down one row repeat
    By tellerak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2009, 05:06 PM
  5. [SOLVED] How do I repeat column headings on all of my sheets w/o cut/paste
    By Momof3boys in forum Excel General
    Replies: 1
    Last Post: 09-16-2005, 12:05 AM

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