Thread: Hide wbk files?
View Single Post
  #6   Report Post  
Posted to microsoft.public.word.newusers,microsoft.public.word.vba.general
Karl E. Peterson Karl E. Peterson is offline
external usenet poster
 
Posts: 2
Default Hide wbk files?

There's probably a more elegant way, but one would be to create a class that sinks
application events, as Dave Rado outlines he

http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm

Then, set a short-duration timer whenever the DocumentBeforeSave event fires, noting
the location where the document is to be saved. When the timer elapses, check for a
backup at that location, and do what needs to be done. Setting a hidden attribute
is pretty easy, using the SetAttr statement.

I'm sure there are more elegant ways to attack this, but they'd probably involve
more work to rig up too.
--
..NET: It's About Trust!
http://vfred.mvps.org



Suzanne S. Barnhill wrote:
Yes, this would work. I'm cross-posting this to a developer group that may
be able to help with the VBA.


"GB" wrote in message
...
Suzanne S. Barnhill wrote:
If you use Word's File Open dialog, set to All Word Documents, you
won't see them.


She recently emailed someone the backup file, using gmail. So, simply
having them visible with the explorer is an issue.

Beyond that, I don't know of any way to hide them
except to manually mark them as Hidden, which won't help if you have
hidden files and folders displayed.


That's easy to turn off, of course, but I can't find any automatic way to
make them hidden in the first place.

Why not just turn off
"Automatically create backup copy" if this setting is causing a
problem?


Well, she occasionally messes up big-time, in which case the wbk files are
potentially helpful.

It occurs to me that there's probably a document save event that I could
use to trigger a vba macro? Then just run through all the wbk files in the
directory to make them all hidden. Any thoughts on that?




--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"GB" wrote in message
...
GB wrote:
I would like to hide the wbk files on my wife's computer, purely
because she opens them and then gets confused as she can't edit them
and they are not the latest version and so on. Yes, I know....

One simple solution is for word to set the hidden attribute on the
backup files when it renames them. Is there any way to do that?

Alternatively, can I at least get Word to call them all zzBackup
instead of Backup, so they end up at the bottom of the file list?


BTW, that's for word 2003.