nike_golf
asked on
Alternative to .savecopyas for saving to .htm or .html?
I'm looking for the exact same functionality of the .savecopyas function that will allow me to save my current workbook as another file but in an .htm/.html format.
Any ideas or solutions to doing this?
NG,
Any ideas or solutions to doing this?
NG,
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
This might not be the most efficient way, but it should work:
Dim sOrig As String
sOrig = Me.FullName
Me.SaveAs "C:\test.htm", XlFileFormat.xlHtml
Workbooks.Open sOrig
Workbooks("test.htm").Clos e SaveChanges:=False
Dim sOrig As String
sOrig = Me.FullName
Me.SaveAs "C:\test.htm", XlFileFormat.xlHtml
Workbooks.Open sOrig
Workbooks("test.htm").Clos
ASKER
That involves opening the master workbook each time and is a huge time waster..
I'm looking for something more efficient.
NG,
I'm looking for something more efficient.
NG,
ASKER
There really is no other way to use the .savecopyas () it only save as Excel.
Thanks for the help.
NG,
Thanks for the help.
NG,
ASKER
already knew that answer...
ASKER
Thanks,