Auto lock/Expire Excel 2007 Files

Experts,

Is there a way to force a distributed Excel 2003/07 file to "expire" and tell the user they need to go download a new copy to continue?  I'd like to embed something in an excel workbook to make this happen.

I have a price book that I'm trying to force people to use the most recent copies, and they won't follow the guidance.

Your help is greatly appreciated!!

Thanks!
Marv1nAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
You can probably do this using a macro of VBA code. How exactly? I am not sure. I will try asking uncle google.
0
Glenn RayExcel VBA DeveloperCommented:
I know of no way to do this without VBA.  Even then, it wouldn't prevent a user from opening a book with macros disabled and still view the data.  The idea would be to make it more convenient for the users to get the updated workbook than to hack the old one.

You would have to modify the book so that all sheets have a "disclaimer" block (ex. a text box) that covers the pricing data.  All sheets should then be password protected so that these disclaimers can't be removed manually.

You would then add an auto-run macro (Sub Workbook_AfterOpen() ) that would compare the current date to the expiration date and then either unlock sheets and remove disclaimers, or display a splash screen stating that the workbook has expired and that the user needs to update.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Glenn RayExcel VBA DeveloperCommented:
The more I think about this, the less likely it seems possible that this is fully enforceable.  


All a user would have to do is open the book once with macros (which would remove the disclaimers) then save it as a macro-free workbook (.xlsx).  They would then be able to open the book and use the pricing data regardless.
0
Marv1nAuthor Commented:
.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.