There are a few posts that sort of relate to this, but I can’t find anything that addresses it directly?
I have a UserForm that has some static controls at the top and a “table”, with a header row using Labels and 5 columns (Date & Day using Lables, Enter1, Enter2 & Enter3 using TextBoxes) …
I’ve started to create Month specific UserForms, driven by another UserForm that opens when the Workbook opens which asks the User to select a Month from a ComboBox List …
But as well as having the correct number of “rows” (31, 30, or 28/29 for February) I need to match the Day to the Date (which will change year-on-year of course), add a BackColour to all the Controls that relate to Weekends and add some validation to the TextBoxes that relate to Weekends (Enter1 cannot have any value if it’s a Weekend) …
I can carry on doing that manually (I have created a 31 day version, which I’m then exporting/importing/editing to create the rest of the Months), but it is laborious and will need updating for each new year …
But I was thinking … could I “just” have some VBA code that creates the table (with all the formatting described above) that I could write once and know will survive the test of time?
Long shot I know, but the knowledge of the contributors to this forum never ceases to surprise me! …
Thanks …
I have a UserForm that has some static controls at the top and a “table”, with a header row using Labels and 5 columns (Date & Day using Lables, Enter1, Enter2 & Enter3 using TextBoxes) …
I’ve started to create Month specific UserForms, driven by another UserForm that opens when the Workbook opens which asks the User to select a Month from a ComboBox List …
But as well as having the correct number of “rows” (31, 30, or 28/29 for February) I need to match the Day to the Date (which will change year-on-year of course), add a BackColour to all the Controls that relate to Weekends and add some validation to the TextBoxes that relate to Weekends (Enter1 cannot have any value if it’s a Weekend) …
I can carry on doing that manually (I have created a 31 day version, which I’m then exporting/importing/editing to create the rest of the Months), but it is laborious and will need updating for each new year …
But I was thinking … could I “just” have some VBA code that creates the table (with all the formatting described above) that I could write once and know will survive the test of time?
Long shot I know, but the knowledge of the contributors to this forum never ceases to surprise me! …
Thanks …