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.
|