goal: use function to unhide specific sheet based on system date. would need to compare created sheet names w/ system date.
Version: xl 2007 code needs to be compatible to users of 2003.
Example file: I have not included a sample file. My workbook has a sheet for each day of current month and a mtd sheet. name format of sheets will always be 3 digit month+space+1 or 2 digit day [ex: Oct 1 Oct 2 Oct 30 etc].
to step you through current project in summary:
-user opens a template
-user logs in (code copies template to a directory, renames file based on network username_month_year)
-code unhides ALL sheets in workbook (Oct 1 thru Oct 31)
My problem, is that user's do not always pay attention to the day they are supposed to be on, so I would like the code to unhide only the sheet whose name matches the current actual date. for example, current date = Oct 9, only Oct 9 would be unhidden. It might be better to reference the code name of the sheets rather the visible name.
Another option that i've considered (and also dont know how to accomplish) would be to unhide all sheets but restrict data entry on future dated sheets, and require password to edit past dated sheets. This seems to be more of a task, but maybe some1 here would think it be the better option.
Long and short, there are approximately 300 users that use these workbooks to track sales results, they are all linked to a report. The report by default only pulls results from current day and MTD, so if a user is entering results on the wrong date, their numbers won't be tracked.
To test for the results im looking for, any work book with multiple sheets can be used. sheet names would be Oct 1, Oct 2, Oct 3 etc... start with all sheets hidden except for a MTD sheet. then have the code (called by a login button in my case) to either unhide current day's sheet, or restrict editing to only current day's sheet.
Any help is appreciated, and thanks in advance! I have found several code samples here that have been very helpful to my project, this is the only one so far that i haven't seemed to stumble across.
Justin