- Katılım
- 29 Ekim 2017
- Mesajlar
- 12
- Excel Vers. ve Dili
- 2013 türkçe
merhaba arkadaşlar makroda alan kısmına rakamları virgül ile yazıyor.bu kısmı nasıl noktaya çevirebilirim
Sub kod()
Dim S1 As Worksheet: Set S1 = Sheets("MAZOT ")
Dim S2 As Worksheet: Set S2 = Sheets("SAP")
sat = 2
S2.Range("A2:H" & Rows.Count).ClearContents
For Each alan In S1.Range("B3:AN32" & S1.Cells(Rows.Count, "A").End(3).Row)
If alan <> "" Then
S2.Cells(sat, "A") = "1500012"
S2.Cells(sat, "B") = alan
S2.Cells(sat, "C") = "L"
S2.Cells(sat, "D") = "C330"
S2.Cells(sat, "E") = "3612"
S2.Cells(sat, "F") = S1.Cells(1, alan.Column)
S2.Cells(sat, "G") = "901"
S2.Cells(sat, "H") = S1.Cells(alan.Row, 1)
sat = sat + 1
End If
Next
End Sub
Sub kod()
Dim S1 As Worksheet: Set S1 = Sheets("MAZOT ")
Dim S2 As Worksheet: Set S2 = Sheets("SAP")
sat = 2
S2.Range("A2:H" & Rows.Count).ClearContents
For Each alan In S1.Range("B3:AN32" & S1.Cells(Rows.Count, "A").End(3).Row)
If alan <> "" Then
S2.Cells(sat, "A") = "1500012"
S2.Cells(sat, "B") = alan
S2.Cells(sat, "C") = "L"
S2.Cells(sat, "D") = "C330"
S2.Cells(sat, "E") = "3612"
S2.Cells(sat, "F") = S1.Cells(1, alan.Column)
S2.Cells(sat, "G") = "901"
S2.Cells(sat, "H") = S1.Cells(alan.Row, 1)
sat = sat + 1
End If
Next
End Sub
