Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB6: how to open a Word doc in VB6 application
Message
De
13/05/1999 11:24:55
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
VB6: how to open a Word doc in VB6 application
Divers
Thread ID:
00218406
Message ID:
00218406
Vues:
52
Can someone help?

The following doesn't work. It should open a Help.Doc when the application user clicks on the F1 or Help button.


Private Sub subaidemenu_Click()
Dim helpfunc As Variant

On Error GoTo errormsg
helpfunc = Shell("C:\Program Files\MSOffice\Office\winword.exe", 3)
SendKeys "%FOC:\VIDEOCON\HELP.doc~", True
AppActivate helpfunc, True
GoTo fin

errormsg:
MsgBox "The user guide is not found. / Le guide de l'usager est introuvable.", , "ERREUR!"
fin:
End Sub
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform