XL97: How to Programmatically Save a Worksheet as HTMLLast reviewed: January 9, 1998Article ID: Q168561 |
The information in this article applies to:
SUMMARYAn updated version of the Internet Assistant Wizard for Microsoft Excel 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 MicrosoftExcel, linkto the following Web address:
http://www.microsoft.com/OfficeFreeStuff/download/Html.exeNOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:
http://www.microsoft.com/ MORE INFORMATIONMicrosoft provides examples of Visual Basic for Applications procedures 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. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400. 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.
REFERENCESFor more information about the HTMLconvert method, refer to the section "HTMLconvert Function Documentation" in the Readme.txt file. For additional information on adding a Add-in, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q157768 TITLE : XL97: Not all Menu Items Appear for Other Users |
Additional query words: XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |