XL97: How to Programmatically Save a Worksheet as HTML This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q168561 SUMMARY
An updated version of the Internet Assistant Wizard for Microsoft Excel 97
is available. This updated wizard allows you to export a worksheet to a
Hypertext Markup Language (HTML) file by using a Visual Basic for
Applications macro.
NOTE: The updated Internet Assistant Wizard is included with Microsoft Excel 97 for Windows, Service Release 1. If you have Microsoft Excel 97 for Windows, Service Release 1 installed, you do not need to download the file. To obtain the updated Internet Assistant Wizard for Microsoft Excel, go to the following Web address: http://office.microsoft.com/downloads/9798/html.aspx (http://office.microsoft.com/downloads/9798/html.aspx) MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers 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 requirements.
The following example uses the HTMLconvert method of the Internet Assistant
Wizard to create a Web page.
NOTE: In order to use this example, you must have the updated Internet Assistant Wizard add-in file (Html.xla), which is dated 4/29/97.
If you run this subroutine several times, the Test.htm file is always overwritten, and a new .gif file is created each time. If, for example, you run the CreateWebPage subroutine six times, six .gif files are created. The Test.htm file points to Test5.gif, which is the latest .gif file. REFERENCES
For more information about the HTMLconvert method, refer to the section
"HTMLconvert Function Documentation" in the Readme.txt file.
For additional information about how to add an add-in, click the article number below to view the article in the Microsoft Knowledge Base: 157768 (http://support.microsoft.com/kb/157768/EN-US/)
XL97: Not all Menu Items Appear for Other Users
| Article Translations
|


Back to the top
