View Single Post
 
Old 03-23-2016, 01:29 AM
royersebastien royersebastien is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Mar 2016
Posts: 1
royersebastien is on a distinguished road
Default SaveAs Doesn't work

Hello Everybody,

the following code does not work on the computer of a colleague

Code:
    Dim WordApp As Word.Application
    Set WordApp = CreateObject("Word.Application")
    Dim DocWord As Word.Document
    Set DocWord = WordApp.Documents.Open("C:\TEST_WORD\Base\FICHIER_BASE.doc")
    DocWord.SaveAs "C:\TEST_WORD\DEVIS.doc"
    DocWord.Close
    Set DocWord = Nothing
    WordApp.Quit
    Set WordApp = Nothing
SaveAs command opens me a "file save as" window instead of saving the file to the desired location
the same program works perfectly on 50 other computers with different office release
but on this computer nothing to do

thank you for helping me
Reply With Quote