التعديلات كما يأتي
Private Sub Worksheet_Activate()
Dim x As Long, t As Integer
Application.ScreenUpdating = False
x = [CD5].Value
If x = 0 Or x = 1 Then GoTo 1
Range("A16:BY16").AutoFill Destination:=Range("A16:BY" & x + 15), Type:=xlFillDefault
Range("A17:BY" & x + 15) = Range("A17:BY" & x + 15).Value
Range("A" & x + 16).Resize(70000, 77) = ""
GoTo 2
1: Range("A" & 17).Resize(70000, 77) = ""
2: For t = 0 To 10
Range("A45:BY47").Offset(32 * t, 0).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Next
Application.ScreenUpdating = True
End Sub
انسخ الكود كما هو وجرب النتيجة
تحياتي