Prompt to Save When Closing

  • Thread starter Thread starter Roxie
  • Start date Start date
R

Roxie

I'm using Word 2002. Usually, when closing a document I
get prompted to save a document if I have made
keystrokes, that is, if I have only opened a document,
realized it wasn't the one I was looking for and close
it, it closes without a 'save' message.

Sometimes, I get asked if I want to save changes to a
document even if no changes have been made. Is there a
way to turn this off? Thanks.
 
Roxie,

My experience is this is caused if you open a document that was created with
another computer using an earlier Word versions (say your lap top or work
computer) and then opened in in Word2002.

The cause was Tools>Options>Save>Embed Smart Tags. Uncheck this, save the
document, open again and see if resolved.

You can run this macro to turn it off on all files in a directory:

Public Sub BatchToggleEmbedSmartTabs()

'Sets embeded SmartTag off in all files in a directory
Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document
'Close any documents that may be open
If Documents.Count > 0 Then
Documents.Close SaveChanges:=wdPromptToSaveChanges
End If
'Get the folder containing the files
With Dialogs(wdDialogCopyFile)
If .Display <> 0 Then
PathToUse = .Directory
Else
MsgBox "Cancelled by User"
Exit Sub
End If
End With

If Left(PathToUse, 1) = Chr(34) Then
PathToUse = Mid(PathToUse, 2, Len(PathToUse) - 2)
End If

myFile = Dir$(PathToUse & "*.*")

While myFile <> ""
'Open each file and toggle SmartTags
Set myDoc = Documents.Open(PathToUse & myFile)
With ActiveDocument
.EmbedSmartTags = False
End With
'Close the file, saving the changes.
myDoc.Close SaveChanges:=wdSaveChanges
myFile = Dir$()
Wend

End Sub
 
This is entirely possible as I *have* used different
computers and older versions of Word in the past.

I'll give your suggestions a shot. Thanks, Greg.
Roxie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top