![]() |
|
#1
|
||||
|
||||
![]()
The reason I suggested replacing 'Exit Sub' is that it's redundant. The code will perform just as you require with 'Else' instead. Delete your modified code's 'Exit Sub' and you'll see that is so.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Cosmo | Word VBA | 2 | 08-11-2014 01:35 PM |