Copying a word file to another location ? (1 Viewer)

liamfitz

Registered User.
Local time
Today, 07:36
Joined
May 17, 2012
Messages
240
The following code throws up no errors, and should copy a file in location ( strpath ) to a different location ( strDest )
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.
 

liamfitz

Registered User.
Local time
Today, 07:36
Joined
May 17, 2012
Messages
240
Aplogies it's working now ( I had left a back-slash off the destination path string .... ) the wonders of breakpoints in debugging, solved it. Thanks.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom