?
Solved

Excel 2007

Posted on 2011-09-27
4
Medium Priority
?
268 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
[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
  • 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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…
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

801 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