PublishObjects Object (Excel)
A collection of all PublishObject objects in the workbook.
Set objPObjs = ActiveWorkbook.PublishObjects For Each objPO in objPObjs If objPO.HtmlType = xlHTMLStatic Then objPO.Publish End If Next objPO
Use PublishObjects(index), where index is the index number of the specified item in the workbook, to return a single PublishObject object. The following example sets the location where the first item in workbook three is saved.