Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim note As String
If Not ActiveCell = Empty Then
If Not ActiveCell.Comment Is Nothing Then
note = InputBox("½Ð¿é¤J·í¤é°O¨Æ", , ActiveCell.Comment.Text)
Else
note = InputBox("½Ð¿é¤J·í¤é°O¨Æ")
End If
If note = Empty Then
ActiveCell.ClearComments
ActiveCell.Font.ColorIndex = 0
Else
On Error Resume Next
ActiveCell.AddComment
ActiveCell.Comment.Text Text:=note
ActiveCell.Font.ColorIndex = 3
End If
End If
End Sub