Private Sub CommandButton2_Click()
'değiştir**************************************************
If ListBox1 = Empty Then
MsgBox "Veri yok.", vbExclamation, "Dikkat"
Exit Sub
End If
If ListBox1.ListIndex < 0 Then
MsgBox "Lütfen listeden seçiniz.", vbExclamation, "Dikkat"
Exit Sub
End If
If MsgBox("Kayıt Değiştirilecektir?", vbCritical + vbYesNo, "Dikkat") = vbYes Then
'ListBox1.RowSource = Empty
Cells(ActiveCell.Row, "B") = TextBox1
Cells(ActiveCell.Row, "C") = TextBox2
Cells(ActiveCell.Row, "D") = TextBox8
Cells(ActiveCell.Row, "E") = TextBox9
Cells(ActiveCell.Row, "F") = TextBox10
..............(Bu arada çok daha fazla txtb var.
Cells(ActiveCell.Row, "DU") = TextBox120
Cells(ActiveCell.Row, "DV") = TextBox121
Cells(ActiveCell.Row, "DW") = TextBox122
With Form_Giris.ListBox1
.ColumnCount = 135
.ColumnWidths = "0;35;50;20;20;20;0;0;0;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;20;20;20;0;0;0;30;0;0;0;0;20;20;20;0;0;0;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;40;0;0;0;0;0;0;0;0;0;40;0;0;0;0;0;40;0;0;0;20;20;20;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;20;20;30;20;20;20;20;20;30;20;20;20;20;30;20;20;20;20;20;"
If Sheets("Veri").Range("A2") = Empty Then
.RowSource = Empty
End If
End With
MsgBox "Kayıt Düzeltilmiştir.", vbInformation, "İşlem İptali"
End If
End Sub
Bu kodla "değiştir"komutu kullanıyorum.Lakin değiştirdim demesine rağmen "Veri" sayfasına kayıt yapmıyor.
(Onlarca da örnek uyguladım ama.Bir yardımınız dokunabilir mi.Bir ip ucu.
http://www.excel.web.tr/f48/framelerde-sekme-syrasy-duzenleme-t104758.html
Bu linkte dosya mevcut,şu anda dosya mevcut olmadığı için yükleyemedim.
'değiştir**************************************************
If ListBox1 = Empty Then
MsgBox "Veri yok.", vbExclamation, "Dikkat"
Exit Sub
End If
If ListBox1.ListIndex < 0 Then
MsgBox "Lütfen listeden seçiniz.", vbExclamation, "Dikkat"
Exit Sub
End If
If MsgBox("Kayıt Değiştirilecektir?", vbCritical + vbYesNo, "Dikkat") = vbYes Then
'ListBox1.RowSource = Empty
Cells(ActiveCell.Row, "B") = TextBox1
Cells(ActiveCell.Row, "C") = TextBox2
Cells(ActiveCell.Row, "D") = TextBox8
Cells(ActiveCell.Row, "E") = TextBox9
Cells(ActiveCell.Row, "F") = TextBox10
..............(Bu arada çok daha fazla txtb var.
Cells(ActiveCell.Row, "DU") = TextBox120
Cells(ActiveCell.Row, "DV") = TextBox121
Cells(ActiveCell.Row, "DW") = TextBox122
With Form_Giris.ListBox1
.ColumnCount = 135
.ColumnWidths = "0;35;50;20;20;20;0;0;0;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;20;20;20;0;0;0;30;0;0;0;0;20;20;20;0;0;0;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;40;0;0;0;0;0;0;0;0;0;40;0;0;0;0;0;40;0;0;0;20;20;20;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;20;20;30;20;20;20;20;20;30;20;20;20;20;30;20;20;20;20;20;"
If Sheets("Veri").Range("A2") = Empty Then
.RowSource = Empty
End If
End With
MsgBox "Kayıt Düzeltilmiştir.", vbInformation, "İşlem İptali"
End If
End Sub
Bu kodla "değiştir"komutu kullanıyorum.Lakin değiştirdim demesine rağmen "Veri" sayfasına kayıt yapmıyor.
(Onlarca da örnek uyguladım ama.Bir yardımınız dokunabilir mi.Bir ip ucu.
http://www.excel.web.tr/f48/framelerde-sekme-syrasy-duzenleme-t104758.html
Bu linkte dosya mevcut,şu anda dosya mevcut olmadığı için yükleyemedim.
Son düzenleme:
