1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| Sub CreationPageHTML()
Dim xFile As Integer
Dim S1 As String, S2 As String
S1 = "http://office.developpez.com/"
S2 = "http://www.developpez.com/template/logo.gif"
xFile = FreeFile
Open "C:\CreationPage.html" For Output As xFile
Print #xFile, "<HTML>"
Print #xFile, "<HEAD>"
Print #xFile, "<TITLE>Essai</TITLE>"
Print #xFile, "</HEAD>"
Print #xFile, ""
Print #xFile, "<BODY TEXT=""#000000"" >"
Print #xFile, "<A href='" & S1 & "'>Le site Developpez.com</A>"
Print #xFile, "<BR><BR>"
Print #xFile, "<A href='" & S1 & "'" & "><IMG WIDTH=234 HEIGHT=103 SRC='" & S2 & "'></a>"
Print #xFile, "<BR><BR>"
Print #xFile, "</BODY>"
Print #xFile, "</HTML>"
Close xFile
ThisWorkbook.FollowHyperlink "C:\CreationPage.html"
End Sub |
Partager