ekte belirmiş olduğum dosyada açıklamaları bulabilirsiniz.
önceden bir sütun için bir makro vardı fakat ben başka bir sütundaki değişmeyi eklemeye çalışınca makro çalışmıyor. yapmaya çalıştığım kod aşağıdadır.
ayrıca bir istediğim 2. birşeyi tam yapamadım. açıklamada anlatmaya çalıştım.
teşekkür ederim.
Sub worksheet_Change(ByVal Target As Range)
On Error GoTo son
If Intersect(Target, [G:G]) Then
If Intersect(Target, [G:G]) = "" Then
GoTo son
End If
Application.EnableEvents = False
Target = Format(Date, "mm") & "/" & Format(Target, "0000") & "-" & Format(Date, "yyyy")
End If
If Intersect(Target, [U:U]) Then
Dim a As String, b As String
Application.EnableEvents = False
If Intersect(Target, [U:U]) = "" Then
Cells(Target.Row, "t") = "=" & Cells(Target.Row, "t") & "+" & 0
End If
a = "=" & Cells(Target.Row, "t") & "+" & Target
Cells(Target.Row, "t") = a
End If
son:
Application.EnableEvents = True
End Sub
önceden bir sütun için bir makro vardı fakat ben başka bir sütundaki değişmeyi eklemeye çalışınca makro çalışmıyor. yapmaya çalıştığım kod aşağıdadır.
ayrıca bir istediğim 2. birşeyi tam yapamadım. açıklamada anlatmaya çalıştım.
teşekkür ederim.
Sub worksheet_Change(ByVal Target As Range)
On Error GoTo son
If Intersect(Target, [G:G]) Then
If Intersect(Target, [G:G]) = "" Then
GoTo son
End If
Application.EnableEvents = False
Target = Format(Date, "mm") & "/" & Format(Target, "0000") & "-" & Format(Date, "yyyy")
End If
If Intersect(Target, [U:U]) Then
Dim a As String, b As String
Application.EnableEvents = False
If Intersect(Target, [U:U]) = "" Then
Cells(Target.Row, "t") = "=" & Cells(Target.Row, "t") & "+" & 0
End If
a = "=" & Cells(Target.Row, "t") & "+" & Target
Cells(Target.Row, "t") = a
End If
son:
Application.EnableEvents = True
End Sub
