Solved

EXCEL 2007

Posted on 2011-09-27
2
272 Views
Last Modified: 2012-06-22
Helllo,
trying to find an easy way to copy and paste cells in excel.
I have 136 cells , under column "A", starting from "A7"
I need to copy "A7" 132 times under column "A", and paste them starting "A150", then copy "A8" 132 times and paste after first paste (starting "A282") and so on..

Any help is appreciated
Thanks.
sample.xlsx
0
Comment
Question by:W.E.B
2 Comments
 
LVL 7

Accepted Solution

by:
m4trix earned 50 total points
ID: 36713823
It doesn't copy and paste (to make it faster) but it accomplishes the same result. The values in this version are fixed, so if your ranges are dynamic this solution will need to be adjusted

Sub fillCells()
    Dim rowA As Integer, copyRow As Integer
    
    copyRow = 150
    For rowA = 7 To 138
        Range("A" & copyRow & ":A" & copyRow + 131) = Range("A" & rowA)
        copyRow = copyRow + 132
    Next rowA
End Sub

Open in new window

0
 

Author Closing Comment

by:W.E.B
ID: 36713834
works like a charm,
thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question