My program runs on a NT network.
On my machine and many others , it works fine. But, on some other machines, it don't.
My problem is : I want to open a word document, and then, execute some macros of this document. But, on some machines it says 'Unable to open this document'
It bugs when I try to execute the macro.
Do someone have an idea ??Code:Private Sub Command1_Click() Dim wrdApp As Word.Application Dim wrdDoc As New Word.Document Set wrdApp = CreateObject("Word.Application") Set wrdDoc = wrdApp.Documents.Open("\\ldpro\public\Olivier\Test.doc") 'it bugs here : wrdApp.Run ("Project.NewMacros.Move1") wrdApp.Selection.Text = "Test"




Reply With Quote