- Katılım
- 18 Ağustos 2007
- Mesajlar
- 22,184
- Excel Vers. ve Dili
-
Microsoft 365 Tr
Ofis 2016 Tr
Kodları aşağıdakilerle değiştirerek deneyin.
.
Kod:
Sub aktar()
Dim tarih As Date, c As Range, d As Range, i As Byte, sut As Integer
Application.ScreenUpdating = False
Sheets("Aylik Gerceklesmeler").Select
tarih = DateSerial(Year(Date), Month(Date) - 1, 1)
Set c = Rows(17).Find(tarih)
If Not c Is Nothing Then
sut = c.Column
End If
For i = 3 To 32
Set d = Range("C17:C" & _
Rows.Count).Find(Cells(3, i), , xlValues, xlWhole)
If Not d Is Nothing Then
Cells(d.Row, sut) = Cells(4, i)
End If
Next i
End Sub