XL97: LastUpdated Argument of Htmlconvert Is Not FunctionalID: Q172305
|
When you programmatically create a Hypertext Markup Language (HTML) document with the Htmlconvert function, the value that you specify for the LastUpdated argument may not appear on the resulting HTML document.
This problem occurs if you do not include the DescriptionFullPage argument for the Htmlconvert function in your Visual Basic for Applications macro.
Microsoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft Support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to
provide added functionality or construct procedures to meet your specific
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/To specify a value for the LastUpdated argument without including a value for the DecscriptionFullPage argument of the Htmlconvert function, specify a null string ("") as the value for the DescriptionFullPage argument of the Htmlconvert function. The following example specifies a value for the LastUpdated argument without including a value for the DecscriptionFullPage argument:
C:\Program Files\Microsoft Office\Office\Library
Sub CreateWebPage()
Dim ObjToConvert(2) As Variant
' Populate the array of objects for HTMLConvert.
Set ObjToConvert(0) = Sheets("sheet1").Range("a1:a3")
Set ObjToConvert(1) = Sheets("sheet1").ChartObjects("Chart 1")
Set ObjToConvert(2) = Sheets("sheet1").Range("a5:a8")
' Load Html.xla into memory.
AddIns("Internet Assistant Wizard").Installed = True
' Create the HTML document.
Htmlconvert rangeandcharttoconvert:=ObjToConvert, _
usefrontpageforexistingfile:=False, _
addtofrontpageweb:=False, useexistingfile:=False, _
codepage:=1252, htmlfilepath:="Test.htm", _
descriptionfullpage:="", lastupdate:=Now
End Sub
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Note that the Htmlconvert function is not supported by the Html.xla add-in
included with the original version of Microsoft Office 97. You must install
Microsoft Office 97 SR-1 or download the updated Html.xla add-in from the
Microsoft web site in order to be able to use the Htmlconvert function.
For additional information on how to programmatically save a worksheet as
HTML, please see the following article in the Microsoft Knowledge Base:
Q168561 XL97: How to Programmatically Save a Worksheet as HTML
Additional query words: XL97
Keywords : kbprg kbdta kbdtacode KbVBA
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 22, 1999