Afficher un message
Vieux 05/10/2005, 01h26   #2 (permalink)
ptitrobertpointfr
XLDnaute Nouveau
 
Date d'inscription: juillet 2005
Messages: 3
Par défaut Re:Ouverture de fichier .doc

Bonsoir,

Je ne sais pas si ton code est faux, en tout cas moi j'utilise ça et c'est nickel.

--------Ces lignes sont indispensable pour ouvrir fichers word--------

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

------------------------------------------------------------------------------
Places ce code ou tu veux l'ouverture de ton fichier

sub Appel_Mondocument()

Fichier = 'C:\\Mondocument.doc'
ShellExecute 0, 'open', Fichier, '', '', o

end sub

@+
ptitrobertpointfr est déconnecté   Réponse avec citation