A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Running a procedure to create a file every second is not a good idea - if the file is not ready yet you'd get conflicts. Try this:
Sub AddToPriceHistory()
Application.ScreenUpdating = False
dtime = Now + TimeValue("00:01:00")
Application.OnTime dtime, "AddToPriceHistory"
Range("A4:BK4").Copy
Range("A9").PasteSpecial Paste:=xlPasteValues
Range("A9").PasteSpecial Paste:=xlPasteFormats
Application.CutCopyMode = False
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Calculate
With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"C:\Users\Michael\Documents\Htm Test.htm", "Sheet1", _
"$E$4:$J$4", xlHtmlStatic, "Book1_19935", "")
.Publish True
.AutoRepublish = False
End With
Application.ScreenUpdating = True
End Sub