1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Sub BuildARCmde_Filename(aLaSociété As String, aDate As Date, aRef As String, aLesOT As String)
Dim LeFichier As String
Dim TheData As New DataObject
LeFichier = Format(aDate, "yyyy.mm.dd - ")
LeFichier = LeFichier & "ARCmde de " & aLaSociété & " (" & aRef & ") - "
LeFichier = LeFichier & BuildReducedListFromExtendedList(aLesOT, ", ", "OT-0000") & ".pdf"
TheData.SetText (LeFichier)
TheData.PutInClipboard
MsgBox ("L'Accusé de Réception de la commande a été référencé dans tous les OT sélectionnés." & vbCrLf & _
"Vous pouvez maintenant placer un scan de cette facture dans le répertoire approprié." & vbCrLf & _
"Le nom du fichier vous est proposé par défaut ci dessous et a déjà été copié dans le Presse Papier." & vbCrLf & _
"Vous pouvez le coller en renommant le scan." & vbCrLf & _
LeFichier)
End Sub |
Partager