enricopalazzo
New Member
- Joined
- Jun 3, 2011
- Messages
- 6
I need help writing a macro that can copy and insert x rows based on the number in column N in the first row, then go to the next row and repeat. I have about 10,000 rows of data, and when the macro is done there will be about 60,000 rows. I am using Excel 2007 and run Windows XP.
Thank you in advance.
P.S. I tried attaching a worksheet to this but couldn't get it to work. If it would help, and you can explain how to do it, I would be happy to.
<table style="width: 696px; height: 588px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" width="64" span="14"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 48pt;" width="64" height="17">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td class="xl78" style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td></tr><tr style="height: 12.75pt;" height="17"><td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td><td>
</td><td>
</td><td>
</td><td class="xl78">
</td><td>
</td><td>
</td><td>
</td><td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td><td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> </tbody></table>
Thank you in advance.
P.S. I tried attaching a worksheet to this but couldn't get it to work. If it would help, and you can explain how to do it, I would be happy to.
<table style="width: 696px; height: 588px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 48pt;" width="64" span="14"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 48pt;" width="64" height="17">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td><td class="xl78" style="width: 48pt;" width="64">
</td><td style="width: 48pt;" width="64">
</td></tr><tr style="height: 12.75pt;" height="17"><td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td><td>
</td><td>
</td><td>
</td><td class="xl78">
</td><td>
</td><td>
</td><td>
</td><td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td><td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl77" style="height: 12.75pt;" align="right" height="17">
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td>
</td> <td>
</td> <td>
</td> <td class="xl78">
</td> <td>
</td> <td class="xl78">
</td> <td class="xl79" align="right">
</td> <td class="xl77" align="right">
</td> </tr> </tbody></table>