bedirster
Altın Üye
- Katılım
- 18 Ocak 2020
- Mesajlar
- 62
- Excel Vers. ve Dili
-
Office 2019 TR
64 Bit
- Altın Üyelik Bitiş Tarihi
- 16-03-2026
Merhaba,
Aşağıdaki kod dağılımını farklı satır ve hücrelere de uygulamak istiyorum çalışan kod aşağıdaki gibi
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E27]) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
[D28:G40,J28:J40].ClearContents
sut = WorksheetFunction.Match(Target, Sheets("veri").[B1:G1], 0) + 1
son = Sheets("veri").Cells(Rows.Count, sut).End(3).Row
a = 28
For i = 2 To son
Cells(a, "D") = Sheets("veri").Cells(i, sut)
Cells(a, "I") = Sheets("veri").Cells(i, sut + 1)
a = a + 1
Next
[D28].Select
son:
Application.ScreenUpdating = True
End Sub
ben aynı kodları aynı sayfa içerisinde aşağıdaki gibi uygulamak istiyorum ama maalesef çalışmadı
Private Sub Worksheet_Change1(ByVal Target As Range)
If Intersect(Target, [E70]) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
[D71:G83,J71:J83].ClearContents
sut = WorksheetFunction.Match(Target, Sheets("veri").[J1:O1], 0) + 1
son = Sheets("veri").Cells(Rows.Count, sut).End(3).Row
a = 71
For i = 2 To son
Cells(a, "D") = Sheets("veri").Cells(i, sut)
Cells(a, "I") = Sheets("veri").Cells(i, sut + 1)
a = a + 1
Next
[D71].Select
son:
Application.ScreenUpdating = True
End Sub
yardımcı olursanız çok sevinirim.
teşekkürler
yardımcı olabilirmisiniz.
örnek dosya ektedir.
Aşağıdaki kod dağılımını farklı satır ve hücrelere de uygulamak istiyorum çalışan kod aşağıdaki gibi
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E27]) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
[D28:G40,J28:J40].ClearContents
sut = WorksheetFunction.Match(Target, Sheets("veri").[B1:G1], 0) + 1
son = Sheets("veri").Cells(Rows.Count, sut).End(3).Row
a = 28
For i = 2 To son
Cells(a, "D") = Sheets("veri").Cells(i, sut)
Cells(a, "I") = Sheets("veri").Cells(i, sut + 1)
a = a + 1
Next
[D28].Select
son:
Application.ScreenUpdating = True
End Sub
ben aynı kodları aynı sayfa içerisinde aşağıdaki gibi uygulamak istiyorum ama maalesef çalışmadı
Private Sub Worksheet_Change1(ByVal Target As Range)
If Intersect(Target, [E70]) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
[D71:G83,J71:J83].ClearContents
sut = WorksheetFunction.Match(Target, Sheets("veri").[J1:O1], 0) + 1
son = Sheets("veri").Cells(Rows.Count, sut).End(3).Row
a = 71
For i = 2 To son
Cells(a, "D") = Sheets("veri").Cells(i, sut)
Cells(a, "I") = Sheets("veri").Cells(i, sut + 1)
a = a + 1
Next
[D71].Select
son:
Application.ScreenUpdating = True
End Sub
yardımcı olursanız çok sevinirim.
teşekkürler
yardımcı olabilirmisiniz.
örnek dosya ektedir.
Ekli dosyalar
-
61.3 KB Görüntüleme: 4