ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   PublishObjects(x).Publish fails (https://www.excelbanter.com/excel-programming/374949-publishobjects-x-publish-fails.html)

Ardus Petus

PublishObjects(x).Publish fails
 
I want to get the HTML version of a sheet's range.

I recorded a macro :

Sub Macro1
With ActiveWorkbook.PublishObjects("marke****ch_30324")
.HtmlType = xlHtmlStatic
.Publish (False)
End With
End Sub

While recording, everything wors fine.
When I run the macro, it says: (from french):
"The method "Publish" of object "Publishobject" failed.

How come?

TIA,
--
AP




All times are GMT +1. The time now is 03:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com