DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Hücre As Range, Açıklama As String, WF As WorksheetFunction
Set WF = WorksheetFunction
Set Hücre = Target
On Error GoTo Son
Application.DisplayCommentIndicator = xlCommentIndicatorOnly
With Hücre
If .Value = "" Then GoTo Son
Açıklama = .Value & WF.Rept(" ", 35 - Len(.Value))
If Not .Comment Is Nothing Then
.Comment.Text Text:=.Comment.Text & Chr(10) & Açıklama & Now
With .Comment.Shape
.Left = .Left
.Top = .Top
.Width = 250
.Height = .Height + 12.5
End With
Else
.AddComment
.Comment.Text Text:=.Comment.Text & Açıklama & Now
With .Comment.Shape
.Left = .Left
.Top = .Top
.Width = 250
.Height = 12.5
End With
End If
.Comment.Visible = True
End With
Son:
Set WF = Nothing
Set Hücre = Nothing
End Sub
korhan bey denedim;
boş bir hücreye girip çıktığınızda açıklamaya birşey atamıyor ancak dolu bir hücreye hiçbir değişiklik yapmadan girip çıksanız yine açıklamaya bilgi ekliyor..
Ayrıca hücre değiştiğinde o hücreye açıklama olarak değiştirilmeden önceki son değeri gelmesi gerekirken değiştirdiğiniz değer geliyor...
Formülle alternatif:
=EĞER(E1="";"";ŞİMDİ())
korhan bey yine sizden cevap bekliyorum...
korhan bey denedim;
boş bir hücreye girip çıktığınızda açıklamaya birşey atamıyor ancak dolu bir hücreye hiçbir değişiklik yapmadan girip çıksanız yine açıklamaya bilgi ekliyor..
Ayrıca hücre değiştiğinde o hücreye açıklama olarak değiştirilmeden önceki son değeri gelmesi gerekirken değiştirdiğiniz değer geliyor...
bu konuda cevap bekliyorum..
korhan bey yine sizden cevap bekliyorum...
Option Explicit
Dim Eski_Veri As Variant
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Hücre As Range, Açıklama As String, WF As WorksheetFunction
Set WF = WorksheetFunction
Set Hücre = Target
On Error GoTo Son
Application.DisplayCommentIndicator = xlCommentIndicatorOnly
With Hücre
If .Value = "" Then GoTo Son
If .Value = Eski_Veri Then GoTo Son
If Eski_Veri = Empty Then
Açıklama = "Boş Hücre !" & WF.Rept(" ", 35 - Len("Boş Hücre !"))
Else
Açıklama = Eski_Veri & WF.Rept(" ", 35 - Len(Eski_Veri))
End If
If Not .Comment Is Nothing Then
.Comment.Text Text:=.Comment.Text & Chr(10) & Açıklama & Now
With .Comment.Shape
.Left = .Left
.Top = .Top
.Width = 250
.Height = .Height + 12.5
End With
Else
.AddComment
.Comment.Text Text:=.Comment.Text & Açıklama & Now
With .Comment.Shape
.Left = .Left
.Top = .Top
.Width = 250
.Height = 12.5
End With
End If
.Comment.Visible = True
End With
Son:
Set WF = Nothing
Set Hücre = Nothing
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Eski_Veri = Target.Value
End Sub