Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
darkrats darkrats is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Ron P Ron P is offline
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 171
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Greg Maxey Greg Maxey is offline
external usenet poster
 
Posts: 171
Default 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   Report Post  
Posted to microsoft.public.word.newusers
darkrats darkrats is offline
external usenet poster
 
Posts: 2
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to see who last opened a Word Document? [email protected] Microsoft Word Help 12 May 10th 23 02:49 PM
Document opened from OL2003 doesn't Pyramid 36 Microsoft Word Help 3 May 23rd 06 04:56 PM
File size increases when the Word document is opened Irish Belle Microsoft Word Help 1 April 10th 06 03:24 PM
New Document is not blank when Word 2003 is opened cheryl Tables 2 June 15th 05 04:52 PM
How can I prevent a long document changing when opened on other c. warbara Page Layout 1 December 28th 04 03:05 PM


All times are GMT +1. The time now is 11:04 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"