udentr2002
Altın Üye
- Katılım
- 5 Kasım 2006
- Mesajlar
- 1,503
- Excel Vers. ve Dili
- iş yerinde Office 365
evde Office 365
hocam pek anlatamadım başlıkta sanırım bu yüzden ekli dosyada anlattım yapabilme şansımız varmı acaba ???
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
=EĞER(EYOKSA(İNDİS(DOLAYLI("'"&$A3&"'!F3:F5000");TOPLA.ÇARPIM((KAÇINCI($B3&$C3&F3;DOLAYLI("'"&$A3&"'!H3:H5000");0)))));"";İNDİS(DOLAYLI("'"&$A3&"'!F3:F5000");TOPLA.ÇARPIM((KAÇINCI($B3&$C3&$F3;DOLAYLI("'"&$A3&"'!H3:H5000");0)))))
Private Sub CommandButton1_Click()
On Error Resume Next
If ComboBox1 = "" Then
MsgBox "Firma Adı Seçmelisiniz!!!"
Exit Sub
End If
Set s1 = Sheets(ComboBox1.Text)
If TextBox1.Text = "" Then
MsgBox "Ürününü Adını Giriniz!!!"
Exit Sub
ElseIf TextBox2.Text = "" Then
MsgBox "Etken Maddenin Adını ve Dozunu Giriniz!!!"
Exit Sub
ElseIf TextBox3.Text = "" Then
MsgBox "Bakanlık Numarasını Giriniz!!!"
Exit Sub
ElseIf TextBox8.Text = "" Then
MsgBox "Bakanlık Tarihini Giriniz!!!"
Exit Sub
End If
e = s1.[e65536].End(3).Row
s1.Cells(e + 2, "a") = TextBox1.Text
s1.Cells(e + 2, "b") = TextBox2.Text
s1.Cells(e + 2, "c") = TextBox3.Text
s1.Cells(e + 2, "d") = TextBox4.Text
s1.Cells(e + 2, "e") = TextBox8.Text
s1.Cells(e + 3, "e") = TextBox5.Text
s1.Cells(e + 4, "e") = TextBox6.Text
s1.Cells(e + 5, "e") = TextBox7.Text
s1.Cells(e + 6, "e") = TextBox9.Text
s1.Cells(e + 7, "e") = TextBox10.Text
s1.Cells(e + 8, "e") = TextBox11.Text
s1.Cells(e + 9, "e") = TextBox12.Text
s1.Cells(e + 10, "e") = TextBox13.Text
Birleştir = TextBox1.Text & TextBox2.Text & TextBox3.Text & TextBox4.Text
If TextBox8 <> "" Then
s1.Cells(e + 2, "H") = Birleştir & TextBox8.Text
If TextBox5 <> "" Then
s1.Cells(e + 3, "H") = Birleştir & TextBox5.Text
If TextBox6 <> "" Then
s1.Cells(e + 4, "H") = Birleştir & TextBox6.Text
If TextBox7 <> "" Then
s1.Cells(e + 5, "H") = Birleştir & TextBox7.Text
If TextBox9 <> "" Then
s1.Cells(e + 6, "H") = Birleştir & TextBox9.Text
If TextBox10 <> "" Then
s1.Cells(e + 7, "H") = Birleştir & TextBox10.Text
If TextBox11 <> "" Then
s1.Cells(e + 8, "H") = Birleştir & TextBox11.Text
If TextBox12 <> "" Then
s1.Cells(e + 9, "H") = Birleştir & TextBox12.Text
If TextBox13 <> "" Then
s1.Cells(e + 10, "H") = Birleştir & TextBox13.Text
End If: End If: End If: End If: End If: End If: End If: End If: End If
Set s2 = Sheets("Veri")
f = s2.[a65536].End(3).Row
s2.Cells(f + 1, "a") = ComboBox1.Text
s2.Cells(f + 1, "b") = TextBox1.Text
s2.Cells(f + 1, "c") = TextBox2.Text
s2.Cells(f + 1, "d") = TextBox3.Text
s2.Cells(f + 1, "e") = TextBox4.Text
s2.Cells(f + 1, "f") = TextBox8.Text
s2.Cells(f + 1, "h") = TextBox5.Text
s2.Cells(f + 1, "j") = TextBox6.Text
s2.Cells(f + 1, "l") = TextBox7.Text
s2.Cells(f + 1, "n") = TextBox9.Text
s2.Cells(f + 1, "p") = TextBox10.Text
s2.Cells(f + 1, "r") = TextBox11.Text
s2.Cells(f + 1, "t") = TextBox12.Text
s2.Cells(f + 1, "v") = TextBox13.Text
For a = 1 To 13
Controls("textbox" & a) = ""
Next
End Sub