RenuyMa
Messages postés3Date d'inscriptionjeudi 26 janvier 2006StatutMembreDernière intervention19 mars 2006
-
18 mars 2006 à 19:28
RenuyMa
Messages postés3Date d'inscriptionjeudi 26 janvier 2006StatutMembreDernière intervention19 mars 2006
-
19 mars 2006 à 09:55
Bonjour à vous,
Je suis totalement débutante.
J'ai besoin de savoir comment je peux ouvrir un fichier Word, dont le chemin est connu, quand j'appuie sur un bouton (que je crée).
Pouvez-vous m'aider ? C'est urgent et important.
Grand merci
Maïté
A voir également:
Ouvrir un fichier Word à partir d'Excel dont je connais le chemin
cs_Willi
Messages postés2375Date d'inscriptionjeudi 12 juillet 2001StatutModérateurDernière intervention15 décembre 201822 18 mars 2006 à 19:47
Bonsoir,
Voici un exemple tout prêt ^^
Private Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWMAXIMIZED = 3
Private Sub CommandButton1_Click()
ShellExecute 0, vbNullString, "C:\TonFichierWord.doc", vbNullString, "C:", SW_SHOWMAXIMIZED
End Sub