Virtually anything you can do with the menu system can also be done with VBA.
I think you will have to create a User Form and put a common dialogs control on it.
In setting up the displaying of the Save / SaveAs dialog, add *.htm to the filter list.
Once the user has made their choices, use VBA to save the worksheet accordingly.
For me, recording a macro yielded the following:
Code:
ActiveWorkbook.SaveAs Filename:="C:\Test.htm", FileFormat:=xlHtml, _
ReadOnlyRecommended:=False, CreateBackup:=False
Actually, in looking, I donât see the CommonDialogs control. Iâm sure that there is a standard way in Excel to show the various dialogs. I am just not sure what that is.
But once you have the filename to save to and the location, you can use the .SaveAs method of the workbook to do the actual work.