Bonjour,
J'ai un bouton de commande sur mon formulaire A1 et voici le code que j'ai mis:
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 Private Sub Commande37_Click() On Error GoTo Err_Commande37_Click Dim Enreg As String Enreg = Rs.Fields("Nom_interne").Value (Je donne à la variable la valeur du Champ "Nom Interne" puis je vais dans Word) Dim oApp As Object, objDoc As Object Set oApp = CreateObject("Word.Application") oApp.Visible = True Set objDoc = Document.Open("c:Microsoft Office/Office/WINWORD.exe G:FICHES CURSUS INTERNES/Enreg.doc") Exit_Commande37_Click: Exit Sub Err_Commande37_Click: MsgBox Err.Description Resume Exit_Commande37_Click End Sub
FRANK
Mais là il me renvoie "Objet requis" bon d'accord mais lequel ????
Peux-t-on m'aider ?
Merci d'avance.
Partager