Hyperlink help (Specific Cell Link on Excel HTML Pages)

gottimd

Well-known Member
Joined
Jul 29, 2002
Messages
501
Is there a way to hyperlink to a specific cell on an excel generated HTML page?

I have a workbook, with 2 pages, and each is formatted in a macro to be an HTML page which I will upload. The First sheet, "x", I want to point to a specific cell in the second sheet "y", when pressed as an Html page. I can get the hyperlink to go to the page but not a specific cell.

So, lets say on HTML page "x.html", I press a hyperlink that I want to open up page "y.html", cell A5, how do I create a hyperlink to do that? All I can do or know how to do is, if you press on the hyperlink in page "x", it opens up page "y.html" but doesn't go to the specific cell. Is this possible?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I didn't test this. But as I recall, while you can link to a cell address it works a little cleaner if you name the cell first. I think Excel then puts an anchor tag with that name there. Then you can link to that name fairly easily as I recall. But it's been like two years since I've had to play with Excel-generated HTML and hyperlinks, etc.; but hope that leads in the right direction...
 
Upvote 0
Ok, so I named the Cells specific names on "y.html" in the excel spreadsheet that makes "y.html". How do I hyperlink it from "x.html" now?
 
Upvote 0
I think I'm misunderstanding what you're doing. Are you editing the HTML in a text or HTML editor? Or are you doing all of this in Excel? I assumed you were editing this with an HTML editor and already were very fluent in creating HTML tags by hand.
 
Upvote 0
Doing it in both, but mainly in excel. I think I figured it out through trial and error. Just in case someone is looking at this later....

I named the Cell "HI"
in the hyperlink box, I typed the hyperrlink to go to "www.YYY.com/XXX.html#HI"

Just added the #HI at the end of the webpage it is looking at.

Thanks for the help!
 
Upvote 0
Correct, it's pound sign and cell name. (My apology, I assumed you new that.) However, I would leave out the base URL reference, i.e. make it relative that way less maintainence if the underlying path were to change, i.e. something like
Rich (BB code):
 
Upvote 0

Forum statistics

Threads
1,203,465
Messages
6,055,574
Members
444,799
Latest member
CraigCrowhurst

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top