H
H Dodson
I have been attempting to get a macro together that will do the following:
1.Unprotect a document (if protected)
2.Select the document
3. Copy the document
4.Close the document
5.Supress the save prompt
and will several individual's assistance from this discussion board I have
gotten that macro. The question I have now is, Can I close Word as the last
step of the macro (not just close the document.) Here is the code that I
have been using: (thank you all for your help!)
Dim oDoc As Document
Set oDoc = ActiveDocument
If oDoc.ProtectionType <> wdNoProtection Then
oDoc.Unprotect
End If
oDoc.Content.Copy
oDoc.Close SaveChanges:=wdDoNotSaveChanges
1.Unprotect a document (if protected)
2.Select the document
3. Copy the document
4.Close the document
5.Supress the save prompt
and will several individual's assistance from this discussion board I have
gotten that macro. The question I have now is, Can I close Word as the last
step of the macro (not just close the document.) Here is the code that I
have been using: (thank you all for your help!)
Dim oDoc As Document
Set oDoc = ActiveDocument
If oDoc.ProtectionType <> wdNoProtection Then
oDoc.Unprotect
End If
oDoc.Content.Copy
oDoc.Close SaveChanges:=wdDoNotSaveChanges