Solved

EXCEL VBA 500 points!!

Posted on 2009-04-06
2
138 Views
Last Modified: 2012-05-06
I have a spreadsheet with 150 rows of data.

I want to make another spreadsheet and couple each one of those rows 100 times one after another in the same order in the new spreadsheet.

 So in the new spreadhsheet there would 1500 rows total, 100same rows for each row in the original spreadhseet.

Is there a vba that does that?  thanks
0
Comment
Question by:GlobaLevel
2 Comments
 
LVL 1

Accepted Solution

by:
ZekeLA earned 500 total points
ID: 24079834
I suggest you just turn on macro recording, do the copy and paste a few times and then build your vba from that. I just tried it with a new spread sheet and got this as a start:

    Rows("1:8").Select
    Selection.Copy
    Range("A9").Select
    ActiveSheet.Paste
    Selection.End(xlDown).Select
    Range("A17").Select
    ActiveSheet.Paste
    Selection.End(xlDown).Select
    Range("A25").Select
    ActiveSheet.Paste
    Selection.End(xlDown).Select
    Range("A33").Select
    ActiveSheet.Paste

Basically, select the data you want to copy. Find the end of the data so far, go one more row and paste the selection there. Then just repeat the process of Find End and Past (no need to reselect the data to copy, it's still selected.)
0
 
LVL 10

Author Closing Comment

by:GlobaLevel
ID: 31567144
Awesome!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now