Solved

EXCEL 2007

Posted on 2011-09-27
2
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help Creating PowerShell Script 4 46
Unable to save Excel document because of errors 6 25
Tricky shapes formula part 3 4 33
Copy and paste Excel Shapes using vba 6 23
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…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

730 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