Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Save As and Delete Original

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
whoabuddy@gmail.com - 27 Apr 2006 19:10 GMT
Is there any way to setup Microsoft Word to delete the original
document when you execute a Save As?

I have a situation where there is a locked down directory that is
read-only, and the user is responsible for either saving into our
document management program or saving to another directory structure,
and in doing so, we would like the original file deleted to prevent
duplicates.  Is this even possible?
Jean-Guy Marcil - 27 Apr 2006 21:05 GMT
whoabuddy@gmail.com was telling us:
whoabuddy@gmail.com nous racontait que :

> Is there any way to setup Microsoft Word to delete the original
> document when you execute a Save As?
[quoted text clipped - 4 lines]
> and in doing so, we would like the original file deleted to prevent
> duplicates.  Is this even possible?

If the document is in a Read-Only folder, I do not believe a regular user
can delete it.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

whoabuddy@gmail.com - 27 Apr 2006 21:27 GMT
Normally, no, but we have the directory structure setup in NTFS so that
the user can import files into the new document management system,
delete files, but not write to the folder.  My concern is not as much
the directory's permission structure itself but getting Word to delete
the orginal file on a save as.  Thanks though!
Jean-Guy Marcil - 27 Apr 2006 21:53 GMT
whoabuddy@gmail.com was telling us:
whoabuddy@gmail.com nous racontait que :

> Normally, no, but we have the directory structure setup in NTFS so
> that the user can import files into the new document management
> system, delete files, but not write to the folder.  My concern is not
> as much the directory's permission structure itself but getting Word
> to delete the orginal file on a save as.  Thanks though!

Well, not sure if this will work with your setup, but try this:

'_______________________________________
Sub FileSaveAs()

Dim myFileName As String

myFileName = ActiveDocument.FullName

Dialogs(wdDialogFileSaveAs).Show

Kill myFileName

End Sub
'_______________________________________

If the Sub is called FileSaveAs, it will be invoked whenever you do File >
SaveAs
But not when you do File > Save (For that, called the macro Sub
FileSave()... End Sub)

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

whoabuddy@gmail.com - 27 Apr 2006 22:21 GMT
Thank you, I will give it a shot!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.