1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Option Explicit
Private Sub Workbook_Open()
InsWb "C:\Users\APDF\Desktop\Carte de france\union-europeenne_pt-009.GIF", 70, 20, 120, 120
InsWb "C:\Users\APDF\Desktop\Carte de france\fransa.GIF", 470, 30, 170, 120
End Sub
Private Sub InsWb(ByVal StrUrl As String, ByVal Lf As Integer, ByVal Tp As Integer, ByVal Wd As Integer, ByVal Hg As Integer)
Dim Shp As OLEObject
With Worksheets("Accueil")
Set Shp = .OLEObjects.Add(ClassType:="Shell.Explorer.2", Left:=Lf, Top:=Tp, Width:=Wd, Height:=Hg)
Shp.Object.Navigate StrUrl
Set Shp = Nothing
End With
End Sub |