Sayın Arkadaşlar
Aşağıdaki kodu yazdım fakat benim istediğim. Combobox3 ün bulunduğu satır ile Combobox1 in bunuduğu sütunun kesişme noktasındaki hücreye kayıt butonuna basınca textbox1 e yazdığım değeri yazdırabilmek istiyorum.
Yardımlarınız için şimdiden teşekkürler.
Private Sub ComboBox1_Change()
X = ComboBox1.Value
Set no = Worksheets("kayit").Range("BG1:FZ1")
Set ara = Cells.Find(What:=X, After:=ActiveCell, LookIn:=xlFormulas)
If Not ara Is Nothing Then
ilk = ara.Address
ara.Select
End If
End Sub
Private Sub ComboBox3_Change()
X = ComboBox3.Value
Set no = Worksheets("kayit").Range("B1:B500")
Set ara = Cells.Find(What:=X, After:=ActiveCell, LookIn:=xlFormulas)
If Not ara Is Nothing Then
ilk = ara.Address
ara.Select
End If
End Sub
Private Sub CommandButton1_Click()
satir = ComboBox3.Value
sutun = ComboBox1.Value
ActiveCell.Offset(satir, sutun).Value = TextBox1.Value
End Sub
Private Sub UserForm_Initialize()
ComboBox1.RowSource = "ÖĞRETMEN!F1:F15"
ComboBox2.RowSource = "ÖĞRETMEN!E1:E11"
ComboBox3.RowSource = "kayit!B3:B500"
End Sub
Aşağıdaki kodu yazdım fakat benim istediğim. Combobox3 ün bulunduğu satır ile Combobox1 in bunuduğu sütunun kesişme noktasındaki hücreye kayıt butonuna basınca textbox1 e yazdığım değeri yazdırabilmek istiyorum.
Yardımlarınız için şimdiden teşekkürler.
Private Sub ComboBox1_Change()
X = ComboBox1.Value
Set no = Worksheets("kayit").Range("BG1:FZ1")
Set ara = Cells.Find(What:=X, After:=ActiveCell, LookIn:=xlFormulas)
If Not ara Is Nothing Then
ilk = ara.Address
ara.Select
End If
End Sub
Private Sub ComboBox3_Change()
X = ComboBox3.Value
Set no = Worksheets("kayit").Range("B1:B500")
Set ara = Cells.Find(What:=X, After:=ActiveCell, LookIn:=xlFormulas)
If Not ara Is Nothing Then
ilk = ara.Address
ara.Select
End If
End Sub
Private Sub CommandButton1_Click()
satir = ComboBox3.Value
sutun = ComboBox1.Value
ActiveCell.Offset(satir, sutun).Value = TextBox1.Value
End Sub
Private Sub UserForm_Initialize()
ComboBox1.RowSource = "ÖĞRETMEN!F1:F15"
ComboBox2.RowSource = "ÖĞRETMEN!E1:E11"
ComboBox3.RowSource = "kayit!B3:B500"
End Sub
