макет--упрощенный вариант
Dim j1, j1p, ntxt
Sub htm110422_1919()
j1 = 0
j1p = 0
'''''''''''''''''''''разметьте или смените каталог''''''
''ntxt = "c:\rab\00.htm"
ntxt = Excel.ActiveWorkbook.Path & "\00.htm"
'''''''''''''''''''''''''''''
Open ntxt For Output As #1
Print #1, "<html>"
Print #1, "<head>"
Print #1, "<title>"
Print #1, "техника</title>"
Print #1, "</title>"
''Print #1,"<meta content="." name="Description" />
''Print #1,"<meta content=" " name="Keywords" />
Print #1, "<meta http-equiv=""Content-Type"" content=""text/html; charset=windows-1251"" />"
Print #1, "</head>"
Print #1, "<body>"
Print #1, "
"
Do While j1 < 123
j1 = j1 + 1
p11 Cells(j1, 1).Font.Bold
Loop
Print #1, "
"
Close #1
'j1 = Shell("winword.exe c:\rab\00.htm", vbMaximizedFocus)
j1 = Shell("explorer.exe """ & ntxt & """", vbMaximizedFocus)
End Sub
Sub p11(n1z)
If Len("" & Cells(j1, 1)) > 0 Then
Print #1, "
"
If n1z = True Then
Print #1, ""; Cells(j1, 1) Else Print #1, " | "; Cells(j1, 1); " | : "; " | "; Cells(j1, 2) End If End If End Sub |