Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Deleting a Document while Opened
Is this possible:
Open a Word 2000 document under Windows 2000. Take a look at it, and decide that you want to delete it. Find and click a menu item that deletes the document when you close it. (or do you have to close the document, and then right-click on the icon and delete it) Thanks. |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Deleting a Document while Opened
"darkrats" wrote in message ... Is this possible: not possible...close first then delete Open a Word 2000 document under Windows 2000. Take a look at it, and decide that you want to delete it. Find and click a menu item that deletes the document when you close it. (or do you have to close the document, and then right-click on the icon and delete it) Thanks. |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Deleting a Document while Opened
Rats,
Not extensively tested, but you might assign this macro to a menu, icon, or keyboard shortcut: Sub KillDoc() Dim KillString As String KillString = ActiveDocument.FullName ActiveDocument.Close FileSystem.Kill (KillString) End Sub darkrats wrote: Is this possible: Open a Word 2000 document under Windows 2000. Take a look at it, and decide that you want to delete it. Find and click a menu item that deletes the document when you close it. (or do you have to close the document, and then right-click on the icon and delete it) Thanks. |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Deleting a Document while Opened
Ron P,
I agree with your sequence. Tecnically the document must be closed before it is deleted. However that sequence is effectively transparent when using code similar to: Sub KillDoc() Dim KillString As String KillString = ActiveDocument.FullName ActiveDocument.Close FileSystem.Kill (KillString) End Sub Which could be included in a global template and trigger by a menu, icon, or keyboard shortcut. To the user it would appear that the document was simply deleted (first closed or not) ;-) Ron P wrote: "darkrats" wrote in message ... Is this possible: not possible...close first then delete Open a Word 2000 document under Windows 2000. Take a look at it, and decide that you want to delete it. Find and click a menu item that deletes the document when you close it. (or do you have to close the document, and then right-click on the icon and delete it) Thanks. |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Deleting a Document while Opened
Thanks for the code.
I don't know exactly how to assign it to an icon or menu, but I'll do some "trial and error" experimenting, when I get home from work this evening. darkrats "Greg Maxey" wrote in message oups.com... Rats, Not extensively tested, but you might assign this macro to a menu, icon, or keyboard shortcut: Sub KillDoc() Dim KillString As String KillString = ActiveDocument.FullName ActiveDocument.Close FileSystem.Kill (KillString) End Sub darkrats wrote: Is this possible: Open a Word 2000 document under Windows 2000. Take a look at it, and decide that you want to delete it. Find and click a menu item that deletes the document when you close it. (or do you have to close the document, and then right-click on the icon and delete it) Thanks. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Is it possible to see who last opened a Word Document? | Microsoft Word Help | |||
Document opened from OL2003 doesn't | Microsoft Word Help | |||
File size increases when the Word document is opened | Microsoft Word Help | |||
New Document is not blank when Word 2003 is opened | Tables | |||
How can I prevent a long document changing when opened on other c. | Page Layout |