هذا نقل بالكود
امسح البيانات
واضغط الزر
Sub Macro3()
'
'
'
Columns("G:G").ColumnWidth = 14
Columns("F:F").ColumnWidth = 12.75
Range("A3:A9").Select
Selection.Copy
Range("F3").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("F4:F9").Select
Application.CutCopyMode = False
Selection.Copy
Range("F10").Select
ActiveSheet.Paste
Range("F16").Select
ActiveSheet.Paste
Columns("F:F").EntireColumn.AutoFit
Range("G3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "year"
Range("B3").Select
Selection.Copy
Range("G4").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("G4:G9"), Type:=xlFillDefault
Range("G4:G9").Select
Range("C3").Select
Selection.Copy
Range("G10").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("G10:G15"), Type:=xlFillDefault
Range("G10:G15").Select
Range("G16").Select
ActiveCell.FormulaR1C1 = "1979"
Range("G16").Select
Selection.AutoFill Destination:=Range("G16:G21"), Type:=xlFillDefault
Range("G16:G21").Select
Range("B4:B9").Select
Selection.Copy
Range("H4").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("C4:C9").Select
Application.CutCopyMode = False
Selection.Copy
Range("H10").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("D4:D9").Select
Application.CutCopyMode = False
Selection.Copy
Range("H16").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("F3").Select
Application.CutCopyMode = False
End Sub
المرفقات
Bookemas2.zip