Originally Posted by
ironfelix717
Hello,
Please see attached workbook which demonstrates how you achieve this read/write functionality with VBA.
Here are the constraints with this code:
1.) Calendar sheet must not change its name.
2.) Location of criteria name must not change ("C2")
3.) The range i chose to read/write is C5:R58 - adjust as needed in every instance you see this range.
4.) You can add as many employees as you wish. However, the sheet name must be precisely the same as what you have listed in the criteria field. Otherwise, this will not work.
5.) I experienced strange behavior with this workbook - the change event wouldn't fire on multiple accounts, forcing me to restart the workbook. More than likely a fault with my system, but if you experience absolutely 0 code execution from the workbook, there is an issue.
Items 1-4 can, of course, be modified to meet your needs.
Regards,
Bookmarks