+ Reply to Thread
Results 1 to 3 of 3

adding and copying rows

  1. #1
    Registered User
    Join Date
    06-15-2006
    Posts
    9

    adding and copying rows

    I have a list of items, and I want each item to appear 6 times, althought now they are just there once, for the last sheet i went to add row then dragged down what was in the box, but there has to be an easier way.
    Now:
    a
    b
    c
    d

    What I want:
    a
    a
    a
    a
    a
    a
    b
    b
    b
    b
    b
    b
    c
    c
    c
    c
    c
    c
    d
    d
    d
    d
    d
    d

    I am a very new excel user and cannot figure out how to write a macro or something to do this. please help.

    Thanks in advance for any help.

  2. #2
    Forum Contributor colofnature's Avatar
    Join Date
    05-11-2006
    Location
    -
    MS-Off Ver
    -
    Posts
    301
    Might be easiest to just do it by hand once if there aren't loads of items. I fthere are, this'll do it (select the first entry in your list then run it)

    sub sixplicate
    do
    range(activecell.offset(1,0),activecell.offset(6,0)).entirerow.insert
    range(activecell.address,activecell.offset(5,0).address).filldown
    activecell.offset(6,0).select
    loop until activecell.value=empty
    end sub



    Col

  3. #3
    Registered User
    Join Date
    06-15-2006
    Posts
    9
    Thanks I will try, I have to work with thousands of items and i have done 2 of the documents by hand and it takes hours, and there are more documents to come so I am kinda frustrated with doing it by hand

+ 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