Hi,
Can anyone point me in the right direction?
I am using Excel to open an HTML file and then renaming it using Save As.
It does this but it saves in Excel format html and includes a folder of the same name with the stylesheet and a load of other unwanted bilge, which must be present to open the file in future.
Is there a way to copy and rename the HTML file without changing its format to Excel. I don't need to open it.
Can anyone point me in the right direction?
I am using Excel to open an HTML file and then renaming it using Save As.
It does this but it saves in Excel format html and includes a folder of the same name with the stylesheet and a load of other unwanted bilge, which must be present to open the file in future.
Is there a way to copy and rename the HTML file without changing its format to Excel. I don't need to open it.
Code:
Nme = "TestHTMLAcc"
TimeStamp = " - 10-07-09 121827"
' Open the HTML file
Workbooks.Open Path & "UserAccount123456 - 10-07-09 121827.html"
'Save as with new name
ActiveWorkbook.SaveAs filename:=Nme & TimeStamp & ".html"
ActiveWorkbook.Close True