+ Reply to Thread
Results 1 to 5 of 5

I need a macro to create a line and copy data from the row above into it and repeat

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2011 Mac
    Posts
    15

    I need a macro to create a line and copy data from the row above into it and repeat

    Hello,
    I have an excel file that changes every day. It has a header row with the names of the columns in it. It has columns A through Y and the number of rows is different every day.

    I need to take the first row, insert a blank row under it, copy the data from the row above it from column Q through Y into column A through E on the line below it. Then I need it to repeat until it gets to the last row.

    I have attached the example of the sheet that I am starting with and what I need it to look like after the macro works. Please help, I am dying here.

    I have excel for mac 2011
    Thanks

    I basically need to convert this

    Names of columns in first row
    A B C D E F G H I J K L M N O P Q R S T Y
    A B C D E F G H I J K L M N O P Q R S T Y
    A B C D E F G H I J K L M N O P Q R S T Y
    A B C D E F G H I J K L M N O P Q R S T Y

    to this

    Names of columns in first row
    A B C D E F G H I J K L M N O P
    Q R S T Y
    A B C D E F G H I J K L M N O P
    Q R S T Y
    A B C D E F G H I J K L M N O P
    Q R S T Y
    A B C D E F G H I J K L M N O P
    Q R S T Y
    Attached Files Attached Files
    Last edited by namahs; 01-29-2015 at 06:33 PM.

  2. #2
    Registered User
    Join Date
    10-09-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2011 Mac
    Posts
    15

    Re: I need a macro to create a line and copy data from the row above into it and repeat

    Anybody have any idea on where I should start on this? I cant find any code that is similar to what I need. I am willing to pay if I cant figure it out myself.

  3. #3
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: I need a macro to create a line and copy data from the row above into it and repeat

    Hi,
    This should work!
    Please Login or Register  to view this content.

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

    Re: I need a macro to create a line and copy data from the row above into it and repeat

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2011 Mac
    Posts
    15

    Re: I need a macro to create a line and copy data from the row above into it and repeat

    Whoa, your a genius. It worked first try!!!!!!

+ 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] Need VBA Macro to Copy and paste column data in blank rows and repeat through spreadsheet
    By slk1186 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-07-2014, 12:50 PM
  2. Replies: 0
    Last Post: 01-29-2014, 01:45 PM
  3. Replies: 1
    Last Post: 12-31-2012, 05:31 AM
  4. [SOLVED] Need macro to edit data - select, copy, transpose, repeat
    By zaxer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 02:40 AM
  5. Replies: 0
    Last Post: 09-26-2012, 11:26 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