1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Private Sub OuvrirSiteSelectionne_AfterUpdate()
If Me.OuvrirSiteSelectionne = "http://www.developpez.com" Then
ShellExecute Me.hwnd, "open", "http://www.developpez.com", "", CurrentProject.Path, 1
ElseIf Me.OuvrirSiteSelectionne = "http://www.developpez.net" Then
ShellExecute Me.hwnd, "open", "http://www.developpez.net", "", CurrentProject.Path, 1
ElseIf Me.OuvrirSiteSelectionne = "http://www.michelin.fr" Then
ShellExecute Me.hwnd, "open", "http://www.michelin.fr", "", CurrentProject.Path, 1
ElseIf Me.OuvrirSiteSelectionne = "https://www.facebook.com" Then
ShellExecute Me.hwnd, "open", "https://www.facebook.com", "", CurrentProject.Path, 1
ElseIf Me.OuvrirSiteSelectionne = "https://www.google.com" Then
ShellExecute Me.hwnd, "open", "https://www.google.com", "", CurrentProject.Path, 1
End If
End Sub |
Partager