Arladaşlar ekli dosyamı siz değerli arkadaşların yardımıyla tamamlamaya çalışıyorum. ListBox'daki satıra çift tılladığım zaman verileri ComboBox ve TextBox'lara almiyor. Aşağıdaki hatayı veriyor.
Private Sub ListBox1_Click()
For a = 0 To 4
Controls("textbox" & a + 1) = ListBox1.Column(a)
Next
Range("A2:F" & [a65536].End(3).Row).Interior.ColorIndex = 0
sat = ListBox1.ListIndex + 2
Range("A" & sat & ":F" & sat).Interior.ColorIndex = 0
CommandButton3.Enabled = True
CommandButton4.Enabled = True
CommandButton2.Enabled = False
End Sub
Private Sub ListBox1_Click()
For a = 0 To 4
Controls("textbox" & a + 1) = ListBox1.Column(a)
Next
Range("A2:F" & [a65536].End(3).Row).Interior.ColorIndex = 0
sat = ListBox1.ListIndex + 2
Range("A" & sat & ":F" & sat).Interior.ColorIndex = 0
CommandButton3.Enabled = True
CommandButton4.Enabled = True
CommandButton2.Enabled = False
End Sub
Ekli dosyalar
Son düzenleme:
