+ Reply to Thread
Results 1 to 4 of 4

Macro to copy paste columns to specific rows

  1. #1
    Registered User
    Join Date
    11-23-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macro to copy paste columns to specific rows

    Hi,

    This is a bit of a strange one - but probably relatively simple, I'll be honest I'm an amateur when it comes to macros.

    Basically what I would like to do is copy and paste 3 columns to specific rows. See attached for a sample of dummy data.

    What I would like to do is copy and paste
    C1 to A2, D2 to A3, E1 to A4
    then
    C5 to A6, D5 to A7, E5 to A8
    then
    C9 to A10, D9 to A11, E9 to A12
    then
    C13 to A14, D13 to A15, E13 to A16
    etc
    etc
    etc
    I have a full sheet of data like this, so would like a macro which would convert it all for me.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to copy paste columns to specific rows

    Please Login or Register  to view this content.



  3. #3
    Registered User
    Join Date
    11-23-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Macro to copy paste columns to specific rows

    Thanks very much snb!
    To complicate things what can I do if some of the columns don't have data in them. Say for example D1 was blank - I still want C1 to A2, D1 to A3, E1 to A4 - but A3 would be blank as it is copying a blank value form D1?
    Thanks for your help so far!

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Macro to copy paste columns to specific rows

    Empty cells do not mess up the code I posted.

+ 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