+ Reply to Thread
Results 1 to 3 of 3

Copy and paste a group of columns multiple times based on value

  1. #1
    Registered User
    Join Date
    06-14-2019
    Location
    Los Angeles
    MS-Off Ver
    I don't know
    Posts
    2

    Copy and paste a group of columns multiple times based on value

    I'm a new VBA learner. I am going to make a summary sheet for this kind of form:
    3.PNG

    Eventually, this workbook will have more than 120 forms, I want to use VBA to loop all forms, then make a summary sheet in the same workbook for them. All forms have the same format as the image shows.

    Here is an example I made:

    The really complicated code I have now (I combined them from other's help):

    HTML Code: 
    What I am expecting for is:
    222.png

    My question is how can I copy paste people's names, the position, and numbers based on the Column A? Thank you in advance!

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Copy and paste a group of columns multiple times based on value

    I won't try to develop a procedure for the output you want, but if it can help, I will offer a suggestion since you stated that you are new to this type of data management. The first thing that should be considered is the data base construction. You want your data entered into columns and rows so that it is consistent by type and title, i.e. Names in one column, age in another, emp # in another, etc. If the boss wants to see the data a certain way, you can do that with the output. But the input should be so that you can easily access the data and can know exactly where each type of data is located. I am sure there is a purpose is using multiple tables for your data, but it makes writing code for it complex. If the data was columnar, it could easily be sorted, manipulated, calculated and output to specific formats.

    All that said, there might be someone who will attempt to write the code you want, so don't get discouraged.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    06-14-2019
    Location
    Los Angeles
    MS-Off Ver
    I don't know
    Posts
    2

    Re: Copy and paste a group of columns multiple times based on value

    Hi JLGWhiz, thank you for your reply. You are right, I will keep learning the fundamental knowledge, I also hope someone could answer question since it is the final step of my task.

+ 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] copy and paste multiple times
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2019, 10:21 PM
  2. [SOLVED] Copy multiple columns x number of times based on variable number?
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2017, 04:13 PM
  3. Macro to copy group of cells and paste multiple times for each row of data
    By muddakinjaz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2016, 01:17 PM
  4. Copy/Paste Columns from Multiple Worksheets based on Headers into new Worksheet
    By casper3043 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2015, 03:06 PM
  5. Copy multiple columns and paste into one column, based on row criteria
    By Miki1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2015, 09:59 AM
  6. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  7. Copy and paste multiple times
    By Axcelerate in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2010, 09:24 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