1 2 3 4 5 6 7 8 9 10 11 12
| Function typeDocument(document)
Dim typeDoc
If InStr(document,"pdf") <> 0 or InStr(document,"PDF") Then typeDoc = "_PDF"
If InStr(document,"doc") <> 0 or InStr(document,"DOC") <> 0 Then typeDoc = "_DOC"
If InStr(document,"jpg") <> 0 or InStr(document,"JPG") <> 0 or InStr(document,"png") <> 0 or InStr(document,"PNG") <> 0 or InStr(document,"gif") <> 0 or InStr(document,"GIF") <> 0 or InStr(document,"jpeg") <> 0 or InStr(document,"JPEG") <> 0 or InStr(document,"bmp") <> 0 or InStr(document,"BMP") <> 0 Then typeDoc = "_IMG"
typeDocument = typeDoc
End Function |
Partager