I have a worksheet with a date column. Data in that column is validated based on the worksheet's name. For example, on the worksheet named "Jan 2016" only dates between January 1 and January 31, 2016.
Once a month, users copy a template in the workbook and name it for the current month.
I am curious to know if there is an automatic way for the validation error to tell the user something like "You must enter a date between [MONTH] 1 and [MONTH] [LAST_DAY_OF_MONTH], [YEAR]".
I could do this with a VBA trigger that checks for changes to the worksheet name and sets the validation parameters at that time, but I'm curious to know if I can do this without VBA.
I tried entering a formula in the "Error Message" field (Data Validation > Error Alert) but that displayed the formula literally giving me an error like this:
$A$1
Continue?
I have Excel 2016.
