[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

EXCEL VBA 500 points!!

Posted on 2009-04-06
2
Medium Priority
?
163 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
[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 1

Accepted Solution

by:
ZekeLA earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

650 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