The following code throws up no errors, and should copy a file in location ( strpath ) to a different location ( strDest )
wdApp is a valid instance of the Word.Application class, set earlier in the code. Any ideas would be welcome.
Code:
With wdApp
.Documents.Open strPath
.Documents(strPath).Activate
strDest = "E:\New folder" & filnam
.ActiveDocument.SaveAs Filename:=strDest, AddToRecentFiles:=False
'.Documents.Close strPath
End With
wdApp is a valid instance of the Word.Application class, set earlier in the code. Any ideas would be welcome.