View Single Post
 
Old 05-12-2016, 01:21 AM
vince692 vince692 is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: May 2016
Posts: 22
vince692 is on a distinguished road
Default

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
Reply With Quote