copy down this sheet and first cell pasting to row 75 and no skipping any rowsSo are you wanting to paste to this sheet, all the way down, or to other sheets?
If on other pages, how many sheets are there, and are we going to be copying to ALL sheets?
If down the sheet, what is the first row we will be pasting to? Is it the next one (row 75), or are you skipping any rows in between?
Sub MyCopyRange()
Dim nr As Long
Application.ScreenUpdating = False
' Set initial value of next row
nr = 34
' Copy range
Do
Range("A" & nr + 7 & ":H" & nr + 40).Copy Range("A" & nr + 41)
' Add 34 to next row
nr = nr + 34
' Exit if row number exceeds max
If nr > 1048576 Then Exit Do
Loop
Application.ScreenUpdating = True
End Sub
do you suggestion nr > 1048576 change number to less number than this ?Do you really need to copy down to the bottom of the page?
That is over 30,840 loops!
I have written code that will do that, but it bogging down and timing out, do to the number of times it is running.
If there is some other way to determine exactly how far down it needs to go, that might work better.
Here is the code that I came up with:
Maybe if you let it run long enough, it will finish.VBA Code:Sub MyCopyRange() Dim nr As Long Application.ScreenUpdating = False ' Set initial value of next row nr = 34 ' Copy range Do Range("A" & nr + 7 & ":H" & nr + 40).Copy Range("A" & nr + 41) ' Add 34 to next row nr = nr + 34 ' Exit if row number exceeds max If nr > 1048576 Then Exit Do Loop Application.ScreenUpdating = True End Sub
If possible, yes. But it really depends on what the needs are, and you haven't clearly explains them.do you suggestion nr > 1048576 change number to less number than this ?
I am not sure what you are asking here (doesn't really seem to be a well-formed sentence).pefomance of system effect to fastest this or excel is not strong to do?