J
Jan Holmstrom
Hi,
My macro opens a htm file with data and save it to an existing xls file
(2003).
When it runs - I'm asked to accept overwriting the existing file.
Is it possible to make the same rutine - without Excel asking for accept?
My code:
Sub HTMTOEXCL()
'
' HTMTOEXCL Makro
' Makro indspillet 15-02-2009 af Jan Holmstrøm
'
ChDir "my path"
Workbooks.Open Filename:= _
"my file.htm"
ActiveWorkbook.SaveAs Filename:= _
"existing file.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close
End Sub
Best regards
My macro opens a htm file with data and save it to an existing xls file
(2003).
When it runs - I'm asked to accept overwriting the existing file.
Is it possible to make the same rutine - without Excel asking for accept?
My code:
Sub HTMTOEXCL()
'
' HTMTOEXCL Makro
' Makro indspillet 15-02-2009 af Jan Holmstrøm
'
ChDir "my path"
Workbooks.Open Filename:= _
"my file.htm"
ActiveWorkbook.SaveAs Filename:= _
"existing file.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close
End Sub
Best regards