DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub UserForm_Initialize()
Dim syf As Worksheet
For Each syf In Worksheets
If syf.Name <> "TAKİP" Then
ComboBox1.AddItem syf.Name
End If
Next
'If ComboBox1.ListCount > 0 Then ComboBox1.ListIndex = 0
With ListBox1
.AddItem "Ocak"
.AddItem "Şubat"
.AddItem "Mart"
.AddItem "Nisan"
.AddItem "Mayıs"
.AddItem "Haziran"
.AddItem "Temmuz"
.AddItem "Ağustos"
.AddItem "Eylül"
.AddItem "Ekim"
.AddItem "Kasım"
.AddItem "Aralık"
End With
For i = 1 To 12
ListBox2.AddItem i
Next i
End Sub
Private Sub CommandButton1_Click()
With Sheets(ComboBox1.Text)
Son = .Cells(.Rows.Count, 1).End(3).Row + 1
.Cells(Son, 1) = ListBox1.Value
.Cells(Son, 2) = TextBox2.Value
.Cells(Son, 3) = TextBox1.Value
.Cells(Son, 4) = ListBox2.Value
.Cells(Son, 5) = .Cells(Son, 3) / .Cells(Son, 4)
End With
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
End Sub
Private Sub CommandButton1_Click()
With Sheets(ComboBox1.Text)
Son = .Cells(.Rows.Count, 1).End(3).Row + 1
.Cells(Son, 1) = CDate(TextBox3.Value)
.Cells(Son, 2) = ListBox1.Value
.Cells(Son, 3) = TextBox2.Value
.Cells(Son, 4) = TextBox1.Value
.Cells(Son, 5) = ListBox2.Value
.Cells(Son, 6) = .Cells(Son, 3) / .Cells(Son, 4)
End With
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
End Sub