Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link from web page to Excel range

Status
Not open for further replies.

Argh2

Programmer
Sep 21, 2006
12
US
According to Microsoft KB article #197922, you can link from a web page to an Excel range with the following HTML syntax:
Code:
<a href="[URL unfurl="true"]http://sample.microsoft.com/test.xls#Sheet2!MyRange">Third[/URL] link.</a>
as long as the link is specified with http: and not file:.
You can either use a named range or a specific Excel range designation.

I have a simple html file on a server:
Code:
<html>
This is my <a href="[URL unfurl="true"]http://localhost/Test/Test1.xls#'Sheet1'!B2">[/URL] link</a>.
</html>
This code opens the spreadsheet in the same folder on the server read-only, lets me enable macros (I do), but doesn't go to cell B2 on Sheet1 (selection stays where I saved it at cell E7 on Sheet1.

Any idea what's wrong with this picture?
Argh2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top