| | Cette fonction permet d'imprimer un fichier Excel.
Remarque : Pour fonctionner, il faudra rajouter la référence "Microsoft Excel x.xx Object Library". | | |
| | | | |
| | PrintFileExcel (strDirFile) La synthaxe de la fonction PrintFileExcel comprend l'élément suivant : Eléments | Description | strDirFile | Expression de chaîne correspondant au chemin complet et au nom du fichier Excel que l'on souhaite imprimer. |
| | |
| | | | |
| | Aucun exemple disponible pour le moment. | | |
| | | | |
| |
Function PrintFileExcel(strFile As String) Dim appXl As Excel.Application
Set appXl = CreateObject("Excel.Application")
With appXl .Workbooks.Open strFile .ActiveWorkBook.PrintOut .Quit End With
Set appXl = Nothing
End Function | | |
Date de création : 27/10/2006 @ 16:16
Dernière modification : 27/10/2006 @ 16:16
Catégorie : Automation
Page lue 1429 fois
Prévisualiser la page
Imprimer la page