Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() In case anyone else comes across this problem, I found a solution - activating the sheet containing the range to be published: Private Sub ExportHTML(ByVal dateEffective As Date) Dim objPubOb As PublishObject Dim strDate As String strDate = Format$(dateEffective, "ddmmyy") For Each objPubOb In ThisWorkbook.PublishObjects With objPubOb If .SourceType = xlSourceRange Then .HtmlType = xlHtmlStatic .Filename = Left(.Filename, Len(.Filename) - 10) & strDate & ".htm" ThisWorkbook.Names(.Source).RefersToRange.Parent.A ctivate .Publish (True) End If End With Next objPubOb End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
publish as web page | Excel Discussion (Misc queries) | |||
Publish as Wed Page | Setting up and Configuration of Excel | |||
publish | Excel Discussion (Misc queries) | |||
publish to web | New Users to Excel | |||
How to publish VBA and UserForms on the web? | Excel Programming |