- Katılım
- 5 Eylül 2007
- Mesajlar
- 1,247
- Excel Vers. ve Dili
- ofis 2010
iyi akşamlar; makro sorunsuz çalışıyor, ancak veri aktarıldığında tarih formatı 30.9.2017 gibi şeklinde oluyor ancak ben 30.09.2017 şeklinde olmasını istiyorum. Koda ne gibi ilave yapmam gerekiyor. Teşekkürler.
Kod:
Sub veri_aktar()
Sheets("HAREKET").Select
A = Range("B2:H" & Cells(Rows.Count, 2).End(3).Row)
ReDim b(1 To UBound(A), 1 To UBound(A, 2))
ReDim b1(1 To UBound(A), 1 To UBound(A, 2))
For i = 1 To UBound(A)
If A(i, 1) = "Giriş" Then
say = say + 1
For y = 1 To UBound(A, 2)
b(say, y) = A(i, y)
Next
End If
If A(i, 1) = "Çıkış" Then
say1 = say1 + 1
For y = 1 To UBound(A, 2)
b1(say1, y) = A(i, y)
Next
End If
Next i
With Sheets("RAPOR")
.Range("A2:J" & Rows.Count).ClearContents
.[A2].Resize(say) = (Application.Index(b, , 3))
.[B2].Resize(say) = (Application.Index(b, , 4))
.[I2].Resize(say) = (Application.Index(b, , 7))
.[C2].Resize(say1) = (Application.Index(b1, , 3))
.[D2].Resize(say1) = (Application.Index(b1, , 5))
.[J2].Resize(say1) = (Application.Index(b1, , 7))
End With
End Sub
