- Katılım
- 5 Kasım 2006
- Mesajlar
- 602
- Excel Vers. ve Dili
- TÜRKCE Excel 2021 32bit
Merhaba.
Gifte anlattığım gibi sayı yerine metin kaydediliyor.
Sayı olarak nasıl kaydedilebilinir?
Ondalık sayılarda problem oluyor.
https://dosya.co/524a7xkpnt0c/listbox_Metin.xlsm.html
https://www.dropbox.com/s/ghgabevcsxhc1av/listbox Metin.xlsm?dl=0

Gifte anlattığım gibi sayı yerine metin kaydediliyor.
Sayı olarak nasıl kaydedilebilinir?
Ondalık sayılarda problem oluyor.
https://dosya.co/524a7xkpnt0c/listbox_Metin.xlsm.html
https://www.dropbox.com/s/ghgabevcsxhc1av/listbox Metin.xlsm?dl=0

PHP:
Private Sub CommandButton1_Click()
son = Cells(Rows.Count, 1).End(3).Row
With Me.ListBox1
If .ListCount > 0 Then
If MsgBox("Kaydedilsin mi?", vbQuestion + vbYesNo, "Kaydetme") = vbYes Then
Range("A" & son + 1).Resize(.ListCount, 2).Value = .List
MsgBox "Kaydedildi...", vbInformation, "Kaydetme"
.Clear
Exit Sub
Else
MsgBox "Kaydetme iptal edildi...", vbExclamation, "Kaydetme"
Exit Sub
End If
Else
MsgBox "Listbox Bos Olamaz...", vbExclamation, "Kaydetme"
Exit Sub
End If
End With
End Sub
Private Sub CommandButton2_Click()
With Me.ListBox1
.AddItem Me.TextBox1.Text
.List(.ListCount - 1, 1) = CDbl(Format(Me.TextBox2.Value, "#,##0.00"))
End With
End Sub