First, WOW. Let me get my sunglasses
The problem is that you are making your calendar form the boss, instead of making it a servant. The calendar form should make its result available, instead of deciding what is to be done with its result.
Update Cal1 code to include this line at the top, with the other global declarations:
Then modify your click sub to be
Let's use secondfloor as an example. Modify your code so that after the calendar is finished the result is stored appropriately.
I haven't had the time it would take to do a thorough analysis of your entire solution, but it seems that you have an enormous number of lines of code for what seems to be a straightforward task. Let me know if you need any other help.
Bookmarks