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

Combo Box مصدره أكثر من عمود


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

بسم الله الرحمن الرحيم

تستطيع ان تعرض البيانات فى Combo Box و مصدر البيانات اكثر من عمود بهذا الكود

Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
    ComboBox1.Clear
    Dim cont As Integer
    cont = 1
    Do Until Cells(cont, 1) = ""
        ComboBox1.AddItem (Cells(cont, 1) & " | " & Cells(cont, 2))
        cont = cont + 1
    Loop
End Sub

مرفق ملف

السلام عليكم

ComboBoxFor2_01.rar

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

  • 2 weeks later...

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