The code below returns a run-time error 1004 on the Publish method. I don't know what VB is complaining about. Thanks in advance for your help.
Set objRange = ActiveSheet.Range("A1:Q33")
objcoord = objRange.Address
Set objPublish = ActiveWorkbook.PublishObjects.Add
(xlSourceRange, strFileName, ActiveSheet.Name, _
objcoord, xlHtmlStatic, "", "")
objPublish.Publish False
Set objRange = ActiveSheet.Range("A1:Q33")
objcoord = objRange.Address
Set objPublish = ActiveWorkbook.PublishObjects.Add
(xlSourceRange, strFileName, ActiveSheet.Name, _
objcoord, xlHtmlStatic, "", "")
objPublish.Publish False