If i don't find custumdocument propreties , the code i have after this following code mustn't execute ; (no need to launch an executable without all its arguments)
Code:
'Lit les propriétés personnalisées du document Word
Dim cp As DocumentProperty
Dim strSVSPath
'Vérifie qu'il y a des propriétés personnalisée
If ActiveDocument.CustomDocumentProperties.Count = 0 Then
MsgBox "Custum properties de document non trouvé !"
Exit Sub
Else
For Each cp In ActiveDocument.CustomDocumentProperties
If cp.Name = "SVS" Then
strSVSPath = cp.Value
Else
'MsgBox cp.Name & vbLf & cp.Value
End If
Next cp
End If
'MsgBox strSVSPath
Everything is working fine. Thanks a lot