slm
bir baska kod altinda , listboxdaki bos satirlari göstermek istemiyorum. am bir türlü ayarlayamadim.
Private Sub UserForm_Initialize()
Dim i As Long
On Error Resume Next
Sheets("Sayafa1").Select
With ListBox1
.MultiSelect = fmMultiSelectMulti
.ListStyle = fmListStyleOption
End With
For i = i To 500
If Sheets("Sayfa1").Cells(i, 1) <> "" Then _
ListBox1.AddItem Sheets("Sayfa1").Cells(i, 1)
Next
son = [a500].End(3).Row
For i = 2 To son
If Cells(i, "AW") = "*" Then
ListBox1.Selected(i - 2) = True
End If
Next
End Sub
saygilar
bir baska kod altinda , listboxdaki bos satirlari göstermek istemiyorum. am bir türlü ayarlayamadim.
Private Sub UserForm_Initialize()
Dim i As Long
On Error Resume Next
Sheets("Sayafa1").Select
With ListBox1
.MultiSelect = fmMultiSelectMulti
.ListStyle = fmListStyleOption
End With
For i = i To 500
If Sheets("Sayfa1").Cells(i, 1) <> "" Then _
ListBox1.AddItem Sheets("Sayfa1").Cells(i, 1)
Next
son = [a500].End(3).Row
For i = 2 To son
If Cells(i, "AW") = "*" Then
ListBox1.Selected(i - 2) = True
End If
Next
End Sub
saygilar
Son düzenleme: