rewrite code

T

terilad

Hi,

I sthere a way I can tidy this part of my code up to run more better.

Sub MyCopy()
Range("O7:p16").Copy
Range("A7:B7").Select
ActiveSheet.Paste
Range("Q7:R16").Copy
Range("F7:G7").Select
ActiveSheet.Paste
Range("O18:p27").Copy
Range("A24:B24").Select
ActiveSheet.Paste
Range("Q18:R27").Copy
Range("F24:G24").Select
ActiveSheet.Paste
Range("O29:p38").Copy
Range("A41:B41").Select
ActiveSheet.Paste
Range("Q29:R38").Copy
Range("F41:G41").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub

Many thanks


Mark
 
O

ozgrid.com

Sub MyCopy()
Range("O7:p16").Copy Range("A7")
Range("Q7:R16").Copy Range("F7")
Range("O18:p27").Copy Range("A24")
'etc
End Sub

No need to clear the clipboard as the Copy Method bypasses it.
 
T

terilad

Many thanks

Mark

ozgrid.com said:
Sub MyCopy()
Range("O7:p16").Copy Range("A7")
Range("Q7:R16").Copy Range("F7")
Range("O18:p27").Copy Range("A24")
'etc
End Sub

No need to clear the clipboard as the Copy Method bypasses it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top