ahmed_ummu
Altın Üye
- Katılım
- 28 Mart 2011
- Mesajlar
- 777
- Excel Vers. ve Dili
- Excel 2010 Professional Plus 64 Bit
Günaydın arkadaşlar.
Listbox'a koşula bağı olarak listeleme yaparken, "Permissin Denied" hatası veriyor ve kırmızı renkli olan kod satırını seçiyor. "Listbox1.Addİtem" Yardımcı olabilir misiniz.
Dim Son As Long
Set s1 = Sheets("not")
Son = s1.Cells(Rows.Count, "b").End(3).Row
For i = 1 To Son
If CDate(s1.Cells(i, "b").Value) = Format(Date, "dd.mm.yyyy") Then
ListBox1.ColumnCount = 3
ListBox1.ColumnWidths = "30;70;150"
ListBox1.AddItem
ListBox1.List(ListBox1.ListCount - 1, 0) = s1.Cells(i, "a").Value
ListBox1.List(ListBox1.ListCount - 1, 1) = s1.Cells(i, "b").Value
ListBox1.List(ListBox1.ListCount - 1, 2) = s1.Cells(i, "c").Value
Else
End If
Next i
Listbox'a koşula bağı olarak listeleme yaparken, "Permissin Denied" hatası veriyor ve kırmızı renkli olan kod satırını seçiyor. "Listbox1.Addİtem" Yardımcı olabilir misiniz.
Dim Son As Long
Set s1 = Sheets("not")
Son = s1.Cells(Rows.Count, "b").End(3).Row
For i = 1 To Son
If CDate(s1.Cells(i, "b").Value) = Format(Date, "dd.mm.yyyy") Then
ListBox1.ColumnCount = 3
ListBox1.ColumnWidths = "30;70;150"
ListBox1.AddItem
ListBox1.List(ListBox1.ListCount - 1, 0) = s1.Cells(i, "a").Value
ListBox1.List(ListBox1.ListCount - 1, 1) = s1.Cells(i, "b").Value
ListBox1.List(ListBox1.ListCount - 1, 2) = s1.Cells(i, "c").Value
Else
End If
Next i
