السلام عليكم
اخي الحبيب عباس السماوي ...........حفظكم الله
غير هذا الكود وسيتعامل مع معادلات الصفيف
Sub kh_cFormula(MyRng As Range, iRow As Integer, Lastrow As Long)
Dim Col As Range
Dim R As Long
'========================
For Each Col In MyRng.Cells
If Col.HasFormula Then
For R = iRow To Lastrow
With MyRng.Worksheet
If Col.HasArray Then
.Cells(R, Col.Column).FormulaArray = Col.FormulaR1C1
Else
.Cells(R, Col.Column).Formula = Col.FormulaR1C1
End If
.Cells(R, Col.Column).Value = .Cells(R, Col.Column)
End With
Next R
End If
Next
'========================
Set Col = Nothing
End Sub
تحياتي