It would serve you to record yourself doing an actual SAVEAS HTML and then work with adapting the resulting code. Saving to HTML is an entirely different syntax.
Sub Button1_Click()
Dim fName As String, fPath As String
fPath = "C:\"
fName = Sheets("Sheet1").Range("AE3").Value
With ActiveWorkbook.PublishObjects.Add(xlSourceSheet, _
fPath & fName & ".html", _
ActiveSheet, "", xlHtmlStatic, fName, fName)
.Publish (True)
.AutoRepublish = False
End With
End Sub
That should get you started experimenting with the various parameters.
Bookmarks