Microsoft KB Archive/197922

= How To Link to a Sheet, or Named Area, of an Excel File in HTML =

Article ID: 197922

Article Last Modified on 7/2/2004

-

APPLIES TO


 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.01
 * Microsoft Internet Explorer 3.02
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer (Programming) 5_beta
 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q197922



SUMMARY
There may be times when you want to use links or Microsoft JScript in a Web page to offer quick access to different parts of an Excel Document. For example, you might offer departmental statistics on an intranet site that links easily to charts or previous months' reports in the same document.

You can open an Excel 97 file to a named area, or any sheet and cell from a anchor link or script in an HTML page as long as the HTML page is accessed via http ( not by double-clicking it in Windows Explorer, nor using file://) and Excel is opened within the browser. If Excel is opened outside of the browser, it will not move to the specified link.



MORE INFORMATION
The syntax is based on standard Excel syntax. You can use this method in a frame declaration, an anchor tag, or even in script when using location.href.

This HTML demonstrates how the links and Jscript look:   Excel Linking Example   This link will open the Excel file to the second page with the focus on cell D4.  This link will set the focus on a named area of the spreadsheet .  Make sure you create an Excel file with a named cell, and change the HTML above to reflect the name of your Excel file, and the named area.