DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim ab: Dim bc
ab = "excel"
bc = "2016"
Range("a3").Formula = "= " & ab & " & ""_"" & " & bc & " "
End Sub
Aşağıdaki gibi deneyin:
Kod:Private Sub CommandButton1_Click() Dim ab: Dim bc ab = "excel" bc = "2016" Range("a3").Formula = "= " & ab & " & ""_"" & " & bc & " " End Sub
srn = 1001
For i = 1 To Range("H65536").End(3).Row
If Range("A" & i).Value <> "#" Then
Else
Range("B" & i).Value = srn & " | " & Range("B" & i).Value
srn = srn + 1
End If
Next
Son = Cells(Rows.Count, "A").End(3).Row
For i = 3 To Son
b = 1001
If Cells(i, "A") = "#" Then
a = Left(Cells(i, "B"), 4) * 1
For j = i + 1 To Son
If Cells(j, "A") <> "#" Then
PT1 = Replace(Replace(Replace(Replace(Replace(Replace(Replace(Cells(j, "M"), "HAMMADDE", "H"), "YARIMAMUL", "Y"), "MAMUL", "M"), "ISCILIK", "I"), "NAKLIYE", "N"), "MONTAJ", "M"), "DIGER", "D")
PT2 = Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Replace(Cells(j, "N"), "AHSAP", "A"), "AMBALAJ", "B"), "CAM", "C"), "DERI", "D"), "METAL", "M"), "KIMYASAL", "K"), "PLASTIK", "P"), "ISCILIK", "I"), "DIGER", "O")
[COLOR="Red"]Cells(j, "A") [/COLOR]= PT2 & "." & PT1 & "." & a & "." & b
b = b + 1
Else
i = j - 1
j = Son
End If
Next
End If
Next
Private Sub CommandButton1_Click()
Dim ab: Dim bc
ab = "excel"
bc = "2016"
Range("a3").Formula = "= " & ab & " & ""_"" & " & bc & " "
End Sub
Cells(j, "A") = PT2 & "." & PT1 & "." & a & "." & b
=Sayfa1!A1=PT1
Private Sub WorkSheet_Change(ByVal Target As Range)
If PT1=Sayfa1.Range("A1").Value Then Goto Atla
ab = "excel"
bc = "2016"
Range("a3").Formula = ab & " & ""_"" & " & bc & " "
atla:
Range("A1").Select
End Sub
Private Sub WorkSheet_Change(ByVal Target As Range)
ab = "excel"
bc = "2016"
[B]SAYFA1.[/B]Range("a3").Formula = ab & " & ""_"" & " & bc & " "
End Sub