cs_marco62118
Messages postés176Date d'inscriptionmercredi 7 avril 2004StatutMembreDernière intervention 1 avril 2013
-
23 janv. 2008 à 22:08
cs_Exploreur
Messages postés4821Date d'inscriptionlundi 11 novembre 2002StatutMembreDernière intervention15 novembre 2016
-
24 janv. 2008 à 10:04
Bonjour à toutes et tous
Je voudrais ouvrir plusieur page internet en même temps
j'utilise l'api
"Public 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"
mais lorsque j'appelle cette fonction plusieur fois à la suite je ne vois que la dernière adresse transmise.
cs_Exploreur
Messages postés4821Date d'inscriptionlundi 11 novembre 2002StatutMembreDernière intervention15 novembre 201615 24 janv. 2008 à 10:04
Salut,
Essaye cela :
Private Sub Command1_Click()
' Gestion erreur
On Error Resume Next
' Lancement de la page Web
Shell "rundll32.exe url.dll,FileProtocolHandler " & "Http://www.VbFrance.fr"
' si erreur on traite l'information
If Err.Number Then
' Affichage information
MsgBox Err.Description, vbCritical Or vbOKOnly, "Information utilisateur"
' Netoyage du gestionnaire erreur
Err.Clear
End If