Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Private Sub cmdImportR_Click() Dim strMaTable As String Dim strMonFichier As String Dim strZoneImportee As String strMonFichier = "Chemin du Fichier" strMaTable = "Table Destination" strZoneImportee = "Onglet!NomZoneImportee" Call Importdata(strMonFichier, strMaTable, strZoneImportee ) End Sub Public Function Importdata(MyFile As String, tb As String, ByVal mysh As String) On Error GoTo err_import DoCmd.TransferSpreadsheet acImport, 8, tb, MyFile, True, mysh Exit Function err_import: MsgBox Err.Description Resume Next End FunctionstrZoneImportee = "Onglet!NomZoneImportee"
quel est son rôle, est-ce un code VBA?
Partager