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

طلب -عمل اكثر من ComboBox فى نفس الملف لقائمة منسدلة


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

مرفق ملف لاحد الاخوة الافاضل 

بعمل قائمة منسدلة بcombobox وبحثية فى نفس الوقت

طلب من الاستاذة الافاضل بشرح الكود مع امكانية اضافة اكثر من اداة combo

ولكم تحياتى

 

اقتباس

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
With ComboBox1
    .LinkedCell = ""
    .Clear
    .Visible = False
End With
If Intersect(Target, Range("D3:D27")) Is Nothing Then
    Exit Sub
End If
If Target.Cells.Count <> 1 Then
    Exit Sub
End If
Set Sh2 = æÑÞÉ2
iLastRow2 = Sh2.Cells(Rows.Count, "a").End(xlUp).Row + 1
With ComboBox1
    .Top = Target.Top
    .Left = Target.Left
    .Width = Target.Width
    .Height = Target.Height
    .LinkedCell = Target.Address
    .List = Sh2.Range("A2:A" & iLastRow2).Value
    .Visible = True
    .Activate
End With
SendKeys "%{DOWN}"
End Sub

 

combobox.rar

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

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