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
Solved

EXCEL VBA 500 points!!

Posted on 2009-04-06
2
147 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Suggested Solutions

Title # Comments Views Activity
Access 2013 combo box not working 3 51
Help me. 3 60
RUNRMTCMD from AS/400 12 68
VBA- How to change font, color and format in outlook e-mail sent from Access 2 65
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

839 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