combobox yardım

Katılım
14 Şubat 2007
Mesajlar
55
Excel Vers. ve Dili
Excel 2002
arkadaşlar ekteki dosyada userformdaki comboxlarla ilgili yardım istiyorum. açıklamalar içindedir. tşrkler
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Dosyanız ekte.:cool:
Kod:
Private Sub CommandButton1_Click()
Dim nesne As Control, sat As Long
With Sheets("Sayfa2")
    sat = .Cells(65536, "A").End(xlUp).Row + 1
    .Cells(sat, "A").Value = sat - 1
    For Each nesne In Me.Controls
        If nesne.Tag <> "" Then
            .Cells(sat, CInt(nesne.Tag)).Value = nesne.Value
        End If
    Next
    .Cells(sat, "G").Value = .Cells(sat, "G").Value * 1
    .Cells(sat, "H").Value = .Cells(sat, "H").Value * 1
End With
MsgBox "İşlem Tamam"
End Sub
 

N.Ziya Hiçdurmaz

Özel Üye
Katılım
28 Nisan 2007
Mesajlar
2,218
Excel Vers. ve Dili
Office 2013 TR / 32 Bit
Yanıt

Kod:
Private Sub CommandButton1_Click()
Dim SON, S, I, SIRA As Integer
SON = Cells(65536, "B").End(3).Row + 1
S = 2
For I = 1 To 7
Cells(SON, S) = Controls("COMBOBOX" & I)
S = S + 1
Cells(SON, "I") = TextBox1
Next
For SIRA = 1 To Cells(65536, "B").End(3).Row - 1
Cells(SIRA + 1, "A") = SIRA
Next
End Sub
Private Sub CommandButton2_Click()
Dim I As Byte
For I = 1 To 7
 Controls("COMBOBOX" & I) = ""
Next
TextBox1 = ""
End Sub
Private Sub CommandButton3_Click()
End
End Sub
 
Katılım
14 Şubat 2007
Mesajlar
55
Excel Vers. ve Dili
Excel 2002
sn ziya hiçdurmaz ve evren gizlen yardımlarınız için teşekkürler. elinize sağlık
 
Üst