- Katılım
- 21 Şubat 2011
- Mesajlar
- 8
- Excel Vers. ve Dili
- 2007
Private Sub CommandButton1_Click()
If ComboBox1.Text = "OCAK" Then ComboBox2.Text = "1"
Sheets("Sayfa2").Select
Range("B3").Value = TextBox1.Value
Range("C3").Value = TextBox2.Value
Range("D3").Value = TextBox3.Value
Range("F3").Value = TextBox5.Value
Range("G3").Value = TextBox6.Value
Range("H3").Value = TextBox7.Value
Range("I3").Value = TextBox8.Value
Else
If ComboBox1.Text = "OCAK" Then ComboBox2.Text = "2"
Sheets("Sayfa2").Select
Range("B4").Value = TextBox1.Value
Range("C4").Value = TextBox2.Value
Range("D4").Value = TextBox3.Value
Range("F4").Value = TextBox5.Value
Range("G4").Value = TextBox6.Value
Range("H4").Value = TextBox7.Value
Range("I4").Value = TextBox8.Value
End If
End If
End Sub
ukarıdaki kod hata veriyor yada son yazdıgım bütün text bax ları bütün hücrelere birden yazıyor önce yazdıgım veriler siliniyor
If ComboBox1.Text = "OCAK" Then ComboBox2.Text = "1"
Sheets("Sayfa2").Select
Range("B3").Value = TextBox1.Value
Range("C3").Value = TextBox2.Value
Range("D3").Value = TextBox3.Value
Range("F3").Value = TextBox5.Value
Range("G3").Value = TextBox6.Value
Range("H3").Value = TextBox7.Value
Range("I3").Value = TextBox8.Value
Else
If ComboBox1.Text = "OCAK" Then ComboBox2.Text = "2"
Sheets("Sayfa2").Select
Range("B4").Value = TextBox1.Value
Range("C4").Value = TextBox2.Value
Range("D4").Value = TextBox3.Value
Range("F4").Value = TextBox5.Value
Range("G4").Value = TextBox6.Value
Range("H4").Value = TextBox7.Value
Range("I4").Value = TextBox8.Value
End If
End If
End Sub
ukarıdaki kod hata veriyor yada son yazdıgım bütün text bax ları bütün hücrelere birden yazıyor önce yazdıgım veriler siliniyor