I'm creating a virutal calendar using VBA and putting the dates into a range of cells. I've written a macro that starts off alright but it won't end the loop on the last day of the month. BTW, I know that I can create a userform that would perform these functions for me, but (as strange as it sounds) I'm doing this for fun. I've written the code myself, but can't figure out what I'm doing wrong.
I've attached a sample sheet.
... and as always, any tips for how I can write the code more efficiently is appreciated. I'm open to all forms of constructive criticism. It helps me write more robust macros.
Bookmarks