اخى سلمان
فقط قم بتغير الكود الاتى
Private Sub com2_Change()
Dim WS As Worksheet
Set WS = Worksheets("Ïáíá ÇáÍÓÇÈÇÊ")
WS.Select
x = 5
For hma = 6 To 56
If Me.com2.Value = WS.Cells(hma, x) Then
Me.cur1 = WS.Cells(hma, x).Offset(0, 1)
Me.cur = WS.Cells(hma, x).Offset(0, 2)
End If
Next
End Sub
بالكود الاتى
Private Sub com2_Change()
Dim WS As Worksheet
Set WS = Worksheets("Ïáíá ÇáÍÓÇÈÇÊ")
x = 5
For hma = 6 To 56
If Me.com2.Value = WS.Cells(hma, x) Then
Me.cur1 = WS.Cells(hma, x).Offset(0, 1)
Me.cur = WS.Cells(hma, x).Offset(0, 2)
End If
Next
End Sub