Hello Dave..how about clear all vb macros too..i mean delete vb macro on certain dates..any ideas..t
Posted by ed on April 01, 2001 4:37 AM
Hello Dave..how about clear all vb macros
too..i mean delete vb macro on certain
dates..any ideas..thanks
[ Follow Ups ] [ Post Followup ] [ Mr Excel's Message Board for Excel Help ] [ FAQ ]
Posted by ed on March 29, 2001 at 19:57:49:
In Reply to: Re: self destruct? posted by Dave Hawley on March 29, 2001 at 17:27:05:
trying to get a full time job here (anywhere) - i've dropped many hints, gone over and beyond my call
of duty, etc. (the spreadsheet that you guys helped me on (which works fabulously btw) being one
example.) .. anyway, i was wondering if there is a way to program a "self destruct" on a certain date.
i don't want to erase all of the data, just the formulas which calculate everything that they had been
doing manually for years before i was asked to automate it. .. just for the sake of job security and
whatnot. :)
right?
select "View Code"). Set AllFormulas = Nothing Next Sht Application.CutCopyMode = False End If End Sub
Change the date to suit. This will convert all formulas to Values after the date you specify. You should be aware that you will need to Lock the VBE for viewing if you do not want users
venturing in and removing your code. You should also know that if the Workbook is opened from within Excel and the user holds down
the Shift key, the Workbook_Open will not fire. Dave