Reply
 
Thread Tools Display Modes
  #1   Report Post  
Tazcat
 
Posts: n/a
Default How do I close multiple open word docs without saving them?

Am viewing multiple documents but I wish to close them all at once without
saving them. Using MS Word V 2002.
  #2   Report Post  
AA2e72E
 
Posts: n/a
Default

Try this macro:

Sub CloseAll()
For Each doc In Application.Documents
doc.Saved = True
Next
Application.Quit
End Sub


"Tazcat" wrote:

Am viewing multiple documents but I wish to close them all at once without
saving them. Using MS Word V 2002.

  #3   Report Post  
AA2e72E
 
Posts: n/a
Default

within the loop, you also need:

doc.attachedtemplate.saved = true

"AA2e72E" wrote:

Try this macro:

Sub CloseAll()
For Each doc In Application.Documents
doc.Saved = True
Next
Application.Quit
End Sub


"Tazcat" wrote:

Am viewing multiple documents but I wish to close them all at once without
saving them. Using MS Word V 2002.

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
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th 05 11:30 PM
old Word docs don't open in Word 2003 XP Reg10Tis Microsoft Word Help 1 January 11th 05 02:24 AM
How to change merge forms from Word Perfect to Microsoft Word dollfindance Microsoft Word Help 2 December 30th 04 03:35 PM
Multiple docs open multiple words Ron Smith New Users 2 December 11th 04 09:21 PM
Word Attachments open multiple copies of Word rocketman60 Microsoft Word Help 1 December 11th 04 08:06 AM


All times are GMT +1. The time now is 10:59 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"