Uma outra orientação para aplicação na coluna F.
Private Sub Worksheet_Change(ByVal Target As Range)
'Por: José Arnaldo
Application.ScreenUpdating = False
On Error GoTo Fin
If Not Intersect(Target, Range("F1:F" & Rows.Count)) Is Nothing Then
'Se utilizar área além da coluna F alterar
If Target = Empty Or Intersect(Target, [F:F]) Is Nothing Then Exit Sub
Dim qt As Integer
qt = Sheets("Plan1").[F1].CurrentRegion.Rows.Count
[F:F].ClearComments
With Target
.AddComment
.Comment.Visible = True
.Comment.Shape.Select True
.Comment.Text Text:="Total = " & Application.WorksheetFunction.Sum(Plan1.Range("F1:F" & qt))
.Select
End With
Exit Sub
Fin:
[F:F].ClearComments
End If
Application.ScreenUpdating = True
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 04/03/2012 7:20 am