+ Reply to Thread
Results 1 to 4 of 4

Need Macro to copy, paste and repeat

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    Atlanta
    MS-Off Ver
    windows 7
    Posts
    6

    Need Macro to copy, paste and repeat

    I need macro to copy a range of cells (B1:C4), then special paste transpose to (D1:G2), then go to B5 and repeat until the end.

    Basically I have two columns that have sets of rows that I need to transfer to to columns. As an example:

    1 A
    2 A
    3 A
    4 A
    1 B
    2 B .. and so on

    I need to transfer that to:

    1 2 3 4
    A A A A
    1 2 3 4
    B B B B and so on until the end of the data.


    I would appreciate any help you can lend.
    Last edited by lilynb; 08-05-2014 at 03:44 PM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Macro to copy, paste and repeat

    Try:

    Please Login or Register  to view this content.
    Last edited by stnkynts; 08-05-2014 at 10:34 AM.

  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    Atlanta
    MS-Off Ver
    windows 7
    Posts
    6

    Re: Need Macro to copy, paste and repeat

    Thank you its almost right. I misstated one thing. In column A I have data that needs to stay related to the new columns. So what I really need is:

    Q12 1 2 3 4
    Q12 A A A A
    Q12
    Q12
    X11
    X11 ect.

    So when I delete column B anc C it still has the correct column A data related to it.


    Thanks

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Need Macro to copy, paste and repeat

    I do not understand your new needs. Please submit an example workbook with before and after examples so I get a clear picture of your requirements.

  5. #5
    Registered User
    Join Date
    08-05-2014
    Location
    Atlanta
    MS-Off Ver
    windows 7
    Posts
    6

    Re: Need Macro to copy, paste and repeat

    This is what it would look like. Columns A, Part- B,Area and C, Count are my original columns. I need to create Columns D,E,F,G.

    I will later delete column B. So the ultimate end would be like:

    X172 District 1 District 2 District 3 Total
    X172 5 1 4 10
    X498 District 1 District 2 District 3 Total
    X498 2 2 5 9


    Thanks for your help.

  6. #6
    Registered User
    Join Date
    08-05-2014
    Location
    Atlanta
    MS-Off Ver
    windows 7
    Posts
    6

    Re: Need Macro to copy, paste and repeat

    Couln't get it to show the columns right but you get the idea, there would 5 Columns.

  7. #7
    Registered User
    Join Date
    08-05-2014
    Location
    Atlanta
    MS-Off Ver
    windows 7
    Posts
    6

    Re: Need Macro to copy, paste and repeat

    Can anyone tell me how to put my worksheet on this forum.. in line.

+ 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. Need to copy,paste, offset and repeat
    By lilynb in forum Excel General
    Replies: 2
    Last Post: 08-05-2014, 10:55 PM
  2. 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
  3. [SOLVED] Macro to Find - Copy - Paste - Repeat
    By arf49 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2012, 11:07 AM
  4. copy paste row to another sheet then down 1 then repeat
    By bert_da1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2009, 07:49 AM
  5. loop/repeat copy/paste Macro
    By vizbasic in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-20-2008, 10:19 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