elsg
unread,May 22, 2012, 8:39:08 PM5/22/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi.
i'm solved this way.
Sub Test()
Dim lasta, laste As Long
Dim nam, nam1, c As Range
lasta = Cells(Rows.Count, 1).End(xlUp).Row
Set nam = Range("a1:a" & lasta)
nam.Copy [e1]
nam.Offset(0, 4).RemoveDuplicates Columns:=1, Header:=xlYes
laste = Cells(Rows.Count, 5).End(xlUp).Row
Set nam1 = Range("e2:e" & laste)
For Each c In nam1
c.Offset(, 1) = Application.WorksheetFunction.SumIf(nam, c,
nam.Offset(0, 1))
Next
End Sub
Thank you!!!
--
elsg