[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

EXCEL 2007

Posted on 2011-09-27
2
Medium Priority
?
296 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

656 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