I have tried the filters and they work fine with the exception of "totals". I have a column separate from the initial data that keeps a running total of each sales person. However, when I filter to a salespersons initials, the totals can't be seen. In one respect, that is good because they are no longer allowed to see what the other sells. The downside is that they can't see their own either.
I have this snip of code that allows me to see the total for KB in cell H3.
' KBTotal Macro
'
ActiveSheet.Range("A4:G250").AutoFilter Field:=2, Criteria1:="KB"
ActiveSheet.Range("H3").Value = Application.SumIf(Range("B5:B250"), "KB", Range("C5:C250"))
Range("H3").Select
End Sub
Is there a way that the total for each person respectively can appear in H3 if that person is selected in the filter?
Thanks for your help and suggestions.
Sharron
Posted by: sheizageek@yahoo.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (7) |
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA
------------------------------------
Tidak ada komentar:
Posting Komentar