Solved

Excel 2007

Posted on 2011-09-27
4
264 Views
Last Modified: 2012-05-12
Hello,
I'm trying to copy Column "D", FROM "D7" TO "D138" and paste them into Column "C" Starting "C150", Then Copy Column "E" startin g "E7" TO "E138" into Column "C" after the first paste ("C282") and so on.

Your help is appreciated.
Thanks,
sample.xlsx
0
Comment
Question by:W.E.B
  • 3
4 Comments
 
LVL 8

Expert Comment

by:wchh
ID: 36714714
Try macro code below
0
 
LVL 8

Expert Comment

by:wchh
ID: 36714718

Sub fillCells()
    Dim copyRow As Integer
    Set Rng = ActiveSheet.Range("D7:EE7")
    copyRow = 150
    For i = 4 To 138
        ActiveSheet.Columns(i).Rows("7:138").Copy ActiveSheet.Range("C" & copyRow)
        copyRow = copyRow + 132
    Next i
End Sub

Open in new window

0
 
LVL 8

Accepted Solution

by:
wchh earned 50 total points
ID: 36714724
ignore previous code...
Sub fillCells()
    Dim copyRow As Integer
        copyRow = 150
    For i = 4 To 138
        ActiveSheet.Columns(i).Rows("7:138").Copy ActiveSheet.Range("C" & copyRow)
        copyRow = copyRow + 132
    Next i
End Sub

Open in new window

0
 

Author Closing Comment

by:W.E.B
ID: 36715886
Aawsome, thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

831 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