Morning all,
I have a holiday planner (that is functioning nicely thanks to help from MickG) that displays employee holiday/sickness absence throughout the year (indicated by specific colours).
I have a userform that I want to count the number of these specific colours per employee.
I have a userform that looks like this:
When the user selects an employee from the combobox (all comboboxes, labels etc have default names), the textboxes will count the specific colours for each absence type filled out for that employee.
The colour codes used are :
The range for the count is column C to column NC, and row's 6 through to 20 (but then the row should be selected by choosing the employee from the drop down).
What I'm stuck with is how to count the colours in the cells for each employee. Any help is appreciated!
Thanks,
Adam
I have a holiday planner (that is functioning nicely thanks to help from MickG) that displays employee holiday/sickness absence throughout the year (indicated by specific colours).
I have a userform that I want to count the number of these specific colours per employee.
I have a userform that looks like this:
When the user selects an employee from the combobox (all comboboxes, labels etc have default names), the textboxes will count the specific colours for each absence type filled out for that employee.
The colour codes used are :
Code:
Case Is = holidayButton1: col = 43
Case Is = sickLeaveButton3: col = 53
Case Is = otherOptionButton4: col = 37
The range for the count is column C to column NC, and row's 6 through to 20 (but then the row should be selected by choosing the employee from the drop down).
What I'm stuck with is how to count the colours in the cells for each employee. Any help is appreciated!
Thanks,
Adam