HansV wrote:You don't want anything to happen when the user ticks or clears the check box! The check box is meant to be used by cmdAddLeave to determine what exactly to enter in column D. So you should remove the Chkhalfday_Click event procedure.
Please rename the check box to chkHalfDay - it won't make a iota of difference, but it looks better than Chkhalfday...
Here is the code for cmdAddLeave_Click, with the code that I posted added, and properly indented:
Hi Hans
That puts the lower case in perfect, thank you. The passwords were different because I had meant to change them when they were compromised because somebody left the workbook open (
me!)
I have though now run into another problem because I forgot that the formula that actually updates the calendar cells refers to the range and therefore leaves it as a capital
=IF(WEEKDAY(N$6,2)>5,"",IF(ISNUMBER(MATCH(N$6,PublicHoliday,0)),"PH",INDEX(
LeaveTypes,SUMPRODUCT(($H7=SNames)*(SFrom<=N$6)*(STo>=N$6)*SType))))
Is there anything you could suggest that I could change in the formula to reflect the upper or lower case selection?
You do not have the required permissions to view the files attached to this post.