اذهب الي المحتوي
أوفيسنا

اريد كود بحث متقاطع في الفورم


الردود الموصى بها

تفضل أخى

Private Sub ComboBox1_Change()
ComboBox2_Change
End Sub

Private Sub ComboBox2_Change()
Dim c As Range
Dim cc As Range
Dim LR As Integer
If ComboBox1.Text = "" Or ComboBox2.Text = "" Then
TextBox1 = ""
TextBox2 = ""
End If
LR = Cells(Rows.Count, 1).End(xlUp).Row
For Each c In Range("A5:A" & LR)
For Each cc In Range("C4:O4")
If c = ComboBox1.Text And cc = ComboBox2.Text Then
TextBox1 = Cells(c.Row, 2)
TextBox2 = Cells(c.Row, cc.Column)
Exit For
End If
Next
Next
End Sub

 

رجب.rar

  • Like 3
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information