Results 1 to 2 of 2

Thread: Macro Insert 12 Rows & Copy Data

  1. #1

    Macro Insert 12 Rows & Copy Data



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi All,

    I am an intermediate user of Excel, however, I have never used macro's and I would love to learn but I need assistance to reduce the time spent manipulating data.

    Every Month I get a report as per the below that consists of +/-170 rows.
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA SANPEDRO / EAFCISPY Import 40GE

    I require a macro that inserts 12 rows under each exisitng row and copy the data from the top row into each 11 rows inserted as per the below:
    (I will have 12 Rows reflecting the same data)
    (every month the data varies and the data range varies, it is possible to provide coding for the marco in the form of a button? then I can just copy the data and paste into the template, click the macro button and the macro does the rest.)

    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Import 40RC
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA COTONOU / EAFBJCOO Export 20GE
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Import 20FL
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT
    s.SA ABIDJAN / EAFCIABJ Export 20HT

    I would really appreciate the assisance.

    Regards
    CGreenie

  2. #2
    Super Moderator p45cal's Avatar
    Join Date
    Dec 2012
    Posts
    1,512
    Articles
    0
    Excel Version
    365
    Last edited by p45cal; 2015-06-24 at 12:53 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •