Of course it can be done. If you write the file, you MUST know it's path and name, so making it read only is just playing with the attributes.
But then, it is ONLY playing, as is it less than child's play to undo this.
If you want to "protect" your precious text, you need to put is some where that has at least a modicum of security, like at least a password and within some organiziation which will not be casually moved to the 'recycle bin' by anyone.
MichaelRed
m.red@att.net
There is never time to do it right but there is always time to do it over
Michael:
Bearing in mind that I use the "Open DestFile For Output" VBA statement in Excel 97 (where DestFile is the full path, file name and file extension), how would I set the property of this new .txt file to read only?
i.e. How would I "play with the attributes" programmatically?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.