Hello,
I have created a spreadsheet that has employee scores on it for individual addresses. I created a button that adds the scores that are between 0 to 6, 7 to 8, and 9 to 10. and total these scores in those ranges on sheet 2.
For example Sheet 2 would show:
Scores
0 - 6 = 20
7 - 8 = 10
9 - 10 = 50
Now my problem lies in when I apply a filter to the spreadsheet to just bring up 1 individual employee or filter the spreadsheet by say the month of June my macro button still adds up the entire spreadsheet instead of what is visible after I apply the filter.
My question: Is there a way in my VB code to specify that I only want to calculate the scores that are visible once I apply the filter to the spreadsheet? The reason for this is so I can quickly filter by month or employee and using the same macro button I can quickly see what that totals were so I don't have to write individual filters in my code to do this.
Thank you for any help you can provide me with this matter.
Tim
Bookmarks