D
dd
I'm trying to set up a macro to save the selected print area as a single
file web page, but I get an error at .Publish (True) "Runtime error 1004
Application-defined or object-defined error."
Private Sub cmdSave_Click()
With ActiveWorkbook.PublishObjects.Add(xlSourcePrintArea, _
"P:\GBGWA\Rail\Jobs\5048337 OPI06\Surveys\Index of Proforma
Files.mht", "List1" _
, "", xlHtmlStatic, "Proforma Index (pfm files)_27036", "")
.Publish (True)
.AutoRepublish = False
End With
End Sub
D Dawson
file web page, but I get an error at .Publish (True) "Runtime error 1004
Application-defined or object-defined error."
Private Sub cmdSave_Click()
With ActiveWorkbook.PublishObjects.Add(xlSourcePrintArea, _
"P:\GBGWA\Rail\Jobs\5048337 OPI06\Surveys\Index of Proforma
Files.mht", "List1" _
, "", xlHtmlStatic, "Proforma Index (pfm files)_27036", "")
.Publish (True)
.AutoRepublish = False
End With
End Sub
D Dawson