Hi,
I have create a macro by save all the steps that I want do to. So, I can see what are the codes behide. Unfortually, I repete manually the same step and the code is very long. So, I wonder if someone can rewrite the code more compact and more flexible. The following code comes from the excel macro wizard.
Code:
Rows("60:60").Select
Selection.Copy
Sheets("Feuil12").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("59:59").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A2").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("58:58").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A3").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("57:57").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A4").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("56:56").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
....
Sheets("Feuil11").Select
Rows("120:120").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A60").Select
ActiveSheet.Paste
Thanks,
Le
I have create a macro by save all the steps that I want do to. So, I can see what are the codes behide. Unfortually, I repete manually the same step and the code is very long. So, I wonder if someone can rewrite the code more compact and more flexible. The following code comes from the excel macro wizard.
Code:
Rows("60:60").Select
Selection.Copy
Sheets("Feuil12").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("59:59").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A2").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("58:58").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A3").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("57:57").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A4").Select
ActiveSheet.Paste
Sheets("Feuil11").Select
Rows("56:56").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
....
Sheets("Feuil11").Select
Rows("120:120").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Feuil12").Select
Range("A60").Select
ActiveSheet.Paste
Thanks,
Le