Here's the thing;
One sheet is called "Default", and it has data validation lists, textboxes, comboboxes etc, we don't change anything on this sheet.
Then I use this code to add new sheet;
And when this new sheet appears, named after specific date, everything's restored, ok?? I can do changes, write text etc everything I want, and when I select "add new sheet", it gives me an new "fresh" sheet, named after specific date and it looks like "default-sheet".![]()
Please Login or Register to view this content.
But what I still need, is that user CANNOT/IS UNABLE TO add more than ONE sheet.
Like this;
Today is 7.21.2011, I select "add new sheet", it gives me an error and messagebox that says "you can add new sheet tomorrow".
When I'm using code ABOVE, it adds more and more sheets everytime I press "add new sheet", but in code BELOW, it gives me a message and I'm not allowed to add more sheets until next day.
![]()
Please Login or Register to view this content.
So could you tell me how to connect these two codes.
And also, how do I protect this "default-sheet" with macro-code so that no one can't change values etc. I've tried to hidden it, but then macros don't work. It does add a new sheet, but it comes a hidden sheet and is named like "Default(2)" or something.
Bookmarks