Hi Adam,
Thanks for the that, but the problem is that we default the HTML of a document, and that default is variable. For example, on starting a new document, we will default the HTML at:
strDefaultHTML = "<html>" & vbCrLf & _
Chr(9) & "<head>" & vbCrLf & _
Chr(9) & "</head>" & vbCrLf & _
Chr(9) & "<body" & _
" bottommargin=" & Chr(34) & "50" & Chr(34) & _
" leftmargin=" & Chr(34) & "75" & Chr(34) & _
" topmargin=" & Chr(34) & "50" & Chr(34) & _
" rightmargin=" & Chr(34) & "50" & Chr(34) & _
" style='FONT-SIZE: 12px; FONT-FAMILY: Verdana' " & _
">" & vbCrLf & _
Chr(9) & "</body>" & vbCrLf & _
"</html>"
But it could be anything, since the users can define the opening default.
Do you have any thoughts on how we can handle that?
FredD