+ Reply to Thread
Results 1 to 3 of 3

Copy and paste list with varying length to specific columns/rows

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Copy and paste list with varying length to specific columns/rows

    Hi all,

    I have worksheet a long list of names in column A. The length varies from report to report - but i have defined Lastrow in my code.

    I have another workbook with a template that my macro opens and fills out certain information. (i cant post because of protected health information).

    In my template from A15 to A42 is where i put the names. How can i get the vba to look at the length of my names list, and copy the first 28 to column A15, the next 28 names to column C15-c42, the next 28 to E15-42 and so on until there are no more names?

    Thanks for your help!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy and paste list with varying length to specific columns/rows

    This will do what you need.


    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    78

    Re: Copy and paste list with varying length to specific columns/rows

    Thank you! That was exactly what I needed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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