اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

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

قام بنشر

اساتذتي واخواني الافاضل

السلام عليكم ورحمة الله وبركاته

مرفق ملف المطلوب البحث عن بيانات الشركة  اذا ادخلت اسم الشركة خلية G  او رقم السجل خلية F

شاكرين ومقدرين تعاونكم

اخوكم اسامة

Book3.xlsxFetching info...

قام بنشر

بالنسبة للــ  CommandButton1_Click انا أفضل هذا الكود البسيط

ولا لزوم لللتفتيش عن قيمته في كل الصفوف حيث ان دالة  Match  تعطينا اياه رأساً

Private Sub CommandButton1_Click()
Dim lr, i

With Sheets("11")
    If ComboBox2 = "" Then Exit Sub
      lr = Application.Match(ComboBox2, .Columns(6), 0)
        For i = 1 To 4
            Me.Controls("TextBox" & i) = _
           .Cells(lr, "b").Offset(, i - 1)
        Next
End With
End Sub

 

  • Like 1
  • Thanks 2

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