- Katılım
- 26 Eylül 2020
- Mesajlar
- 171
- Excel Vers. ve Dili
- excel 2019 pro.Türkçe
- Altın Üyelik Bitiş Tarihi
- 26-09-2021
Aşağıdaki kod ile "Anasayfa" "L" süununda bulunan açıklamaların dökümünü Listbox1 'e alıyorum.Yapmak istediğim bu açıklamalardaki değerlere göre döküm almak.Örneğin açıklama kutusunda "A BLOK-1+1 _KAT:2" yazdığını varsayalım.Bu şekilde açıklaması bulunan satırların dökümünü listboxda almak istiyorum.Aslında bu dairede dönüşümlü oturan kişilerin listesi alınacak..Yani comboboxdaki yazan adrese göre listboxda süzme yapılacak..Umarım anlaşılır olmuştur.Teşekkür ederim.
ListBox1.Clear
With Sheets("Anasayfa")
On Error Resume Next
For i = 15 To .Range("L65536").End(3).Row
If Not .Range("L" & i).Comment Is Nothing Then
If Trim(Replace(.Range("L" & i).Comment.Text, Chr(10), "")) <> "" Then
ListBox1.AddItem
ListBox1.List(UserForm18.ListBox1.ListCount - 1, 0) = .Range("L" & i)
ListBox1.List(UserForm18.ListBox1.ListCount - 1, 1) = .Range("L" & i).Comment.Text
End If: End If
Next
End With
ListBox1.Clear
With Sheets("Anasayfa")
On Error Resume Next
For i = 15 To .Range("L65536").End(3).Row
If Not .Range("L" & i).Comment Is Nothing Then
If Trim(Replace(.Range("L" & i).Comment.Text, Chr(10), "")) <> "" Then
ListBox1.AddItem
ListBox1.List(UserForm18.ListBox1.ListCount - 1, 0) = .Range("L" & i)
ListBox1.List(UserForm18.ListBox1.ListCount - 1, 1) = .Range("L" & i).Comment.Text
End If: End If
Next
End With