Bonjour,

j'essaie de réaliser l'export d'un TS filtré en un fichier PDF.
J'ai trouvé l'excellent document réalisé par Laurent-OTT sur les fonctions VBA pour TS et précisément l'extrait ci-après de la fonction correspondante:
--------
Public Function TS_ExporterEnFichier(TS As Range, _
FormatFichier As Enum_ExportationTS, _
ByVal FichierDest As String, _
OuvrirFichier As Boolean) As Boolean
'------------------------------------------------------------------------------------------------
' Exporte un Tableau Structuré du classeur actif en fichier au format XLSX, CSV, BMP, JPG, PDF.
'------------------------------------------------------------------------------------------------
' TS : la plage du Tableau Structuré.
' FormatFichier : le format de fichier à générer, voir l'énumération Enum_ExportationTS
' TS_XLSX : fichier Excel.
' TS_CSV : fichier texte au format CSV, séparateur point-virgule (ne prend pas les lignes masquées).
' TS_BMP : fichier image au format BMP.
' TS_JPG : fichier image au format JPG.
' TS_PDF : fichier au format "Portable Document Format" PDF.
' FichierDest : le chemin destination (qui doit exister) et le nom du fichier à créer,
----------------
Or la fonction plante car "type non défini". Je pense qu'il s'agit du formatFichier déclaré en ENUM_ExportationTS. Malheureusement malgré plusieurs recherches je ne trouve aucune piste pour comprendre comment se fait cette définition .....
Quelqu'un sait-il comment définir un type ENUM_EXPORTATIONTS ??????

Merci de votre aide