Selam arkadaşlar iki farklı başlangıç kodunu birleştirebilirmiyiz. İkiside lazım ama birleştirince hata veriyor (iki defada yazamıyoruz)
Private Sub UserForm_Initialize()
Set SS = Sheets("SIRA")
Son = SS.Cells(65536, 3).End(xlUp).Row
For X = 3 To Son
If SS.Cells(X, 3) = "BOŞ" Or SS.Cells(X, 3) = "" Then: GoTo Devam
ComboBox3.AddItem SS.Cells(X, 3)
Devam: Next
End Sub
Private Sub UserForm_Initialize()
Dim X As Integer
For X = 1 To 12
ComboBox1.AddItem Format(DateSerial(Year(Now), X, 1), "mmmm")
Next
ComboBox1.Value = Format(DateSerial(Year(Now), Month(Now), 1), "mmmm")
For X = 1900 To 2100
ComboBox2.AddItem X
Next
ComboBox2.Value = Year(Now)
End Sub
Saygılar
Private Sub UserForm_Initialize()
Set SS = Sheets("SIRA")
Son = SS.Cells(65536, 3).End(xlUp).Row
For X = 3 To Son
If SS.Cells(X, 3) = "BOŞ" Or SS.Cells(X, 3) = "" Then: GoTo Devam
ComboBox3.AddItem SS.Cells(X, 3)
Devam: Next
End Sub
Private Sub UserForm_Initialize()
Dim X As Integer
For X = 1 To 12
ComboBox1.AddItem Format(DateSerial(Year(Now), X, 1), "mmmm")
Next
ComboBox1.Value = Format(DateSerial(Year(Now), Month(Now), 1), "mmmm")
For X = 1900 To 2100
ComboBox2.AddItem X
Next
ComboBox2.Value = Year(Now)
End Sub
Saygılar