- Katılım
- 25 Mayıs 2010
- Mesajlar
- 480
- Excel Vers. ve Dili
-
Office 2019
64bit
Tr
Win 10
- Altın Üyelik Bitiş Tarihi
- 12-07-2024
Merhabalar
aşağıdaki kod ile yandaki satıra tarih atıyor ama ben bunu F6:F1000 ve G6:G1000 hücrelerine veri girdiğimde H sütununa uygulamak istiyorum.
Yardımcı olabilir misiniz
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim RaBereich As Range, RaZelle As Range
Set RaBereich = Range("F6:F1000")
' ActiveSheet.Unprotect
Application.EnableEvents = False
For Each RaZelle In Range(Target.Address)
If Not Intersect(RaZelle, RaBereich) Is Nothing Then RaZelle.Offset(0, 1) = Date
Next RaZelle
' ActiveSheet.protect
Application.EnableEvents = True
Set RaBereich = Nothing
End Sub
aşağıdaki kod ile yandaki satıra tarih atıyor ama ben bunu F6:F1000 ve G6:G1000 hücrelerine veri girdiğimde H sütununa uygulamak istiyorum.
Yardımcı olabilir misiniz
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim RaBereich As Range, RaZelle As Range
Set RaBereich = Range("F6:F1000")
' ActiveSheet.Unprotect
Application.EnableEvents = False
For Each RaZelle In Range(Target.Address)
If Not Intersect(RaZelle, RaBereich) Is Nothing Then RaZelle.Offset(0, 1) = Date
Next RaZelle
' ActiveSheet.protect
Application.EnableEvents = True
Set RaBereich = Nothing
End Sub
Son düzenleme: