View Single Post
 
Old 11-17-2017, 01:40 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Either way, you don't need all this copy/paste stuff; simply save the document you opened with a new name. Whether you do that before modifying it, or after (or even before and after), is immaterial. For example:
Code:
Sub Demo()
Dim strDoc As String
With ActiveDocument
  'get the source document's name
  Set strDoc = .FullName
  'modify the document
  'save the document via the SaveAs dialogue
  .Application.Dialogs(wdDialogFileSaveAs).Show
  'modify the document
  'close & save any changes to the document
  .Close True
End With
'reopen the source document
Documents.Open (strDoc)
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote