استعمل هذا الكود لهذا الامر
Sub select_choosen_rows()
Dim lr As Integer
Dim my_rg As Range
Dim my_nb As Integer
Dim i As Integer
Dim cel As Range
my_nb = Cells(1, 1).Value
lr = Cells(Rows.Count, 1).End(3).Row
For i = 2 To lr
If Cells(i, 1) = my_nb Then
If my_rg Is Nothing Then
Set my_rg = Cells(i, 1).Resize(1, 5)
Else
Set my_rg = Union(my_rg, Cells(i, 1).Resize(1, 5))
End If
End If
Next
For Each cel In my_rg
If cel.HasFormula Then cel.Value = cel.Value
Next
End Sub