A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

copy and paste 2900 times macro



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 06:52 PM posted to microsoft.public.excel.misc
dlb
external usenet poster
 
Posts: 16
Default copy and paste 2900 times macro

I have 11 rows of data that I want to copy and then paste 2900 times in the
same spreadsheet. Is there a macro that will perform this function?
  #2  
Old May 15th, 2009, 07:04 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default copy and paste 2900 times macro

Try the below macro. Will copy the 1st 11 rows down///2900 times

Sub mac()
With ActiveWorkbook
Rows("1:11").Select
Selection.Copy
For intLoop = 1 To 2900
Range("A" & (intLoop * 11) + 1).Select
ActiveSheet.Paste
Next
End With
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"DLB" wrote:

I have 11 rows of data that I want to copy and then paste 2900 times in the
same spreadsheet. Is there a macro that will perform this function?

  #3  
Old May 15th, 2009, 07:20 PM posted to microsoft.public.excel.misc
dlb
external usenet poster
 
Posts: 16
Default copy and paste 2900 times macro

Worked great...thanks for the help.

"Jacob Skaria" wrote:

Try the below macro. Will copy the 1st 11 rows down///2900 times

Sub mac()
With ActiveWorkbook
Rows("1:11").Select
Selection.Copy
For intLoop = 1 To 2900
Range("A" & (intLoop * 11) + 1).Select
ActiveSheet.Paste
Next
End With
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"DLB" wrote:

I have 11 rows of data that I want to copy and then paste 2900 times in the
same spreadsheet. Is there a macro that will perform this function?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.