Links to html files in Excel?

C

cornets

Hi,

I am trying to set up an Excel sheet that would contain links to html
pages. In order to so, I put the cursor in a cell and right click
"Hyperlink". In the "Insert Hyperlink" dialog, I browse to the html
file located in some folder, select it, and it's there. But when I
then click on the file in order to open it, an error message displays
saying, "Firefox is unable to open the address, because the protocol
(c) is not associated with any program" (or words to that effect; I
have a Dutch version). Can somebody please explain to me what I should
do to bring about such an association with either Firefox or IE?

Thanks!

Rutger
 
A

Anne Troy

What it SOUNDS like to me is that *.html and/or *.htm files are not
associated with Firefox (perhaps they're associated with Internet
Explorer??), so it's not firing (LOL) Firefox. Try right-clicking any
htm/html file on your PC and choosing Open With, tell it Firefox, then tell
it to "Always use ..."
More info here on File Associations:
http://www.officearticles.com/misc/files_dont_open_when_double-clicked_in_microsoft_office.htm
****************************
Hope it helps!
Anne Troy
www.OfficeArticles.com
****************************
 
C

cornets

Dear Anne,
Thanks very much for your suggestion. That would make sense, wouldn't
it? Unfortunately, it doesn't help, also because Firefox is already
the default browser. But I think I know what does it. I have a nasty
piece of Javascript on all my html pages. I stripped it from one page
and it opened without a problem from Excel. Want to see it? Here:

<SCRIPT TYPE="text/javascript">
if(window.top == window){
var page = new String(self.document.location.pathname);
var contents = "/index.html?" + page;
top.location.replace(contents);
}
</SCRIPT>

It ensures that the right pages are loaded when clicked on in a search
result list.
Thanks anyway for your input, Anne!

Rutger
 
C

cornets

Dear Anne,
Thanks very much for your suggestion. That would make sense, wouldn't
it? Unfortunately, it doesn't help, also because Firefox is already
the default browser. But I think I know what does it. I have a nasty
piece of Javascript on all my html pages. I stripped it from one page
and it opened without a problem from Excel. Want to see it? Here:

<SCRIPT TYPE="text/javascript">
if(window.top == window){
var page = new String(self.document.location.pathname);
var contents = "/index.html?" + page;
top.location.replace(contents);}

</SCRIPT>

It ensures that the right pages are loaded when clicked on in a search
result list.
Thanks anyway for your input, Anne!

Rutger


Hi again Anne (and everybody)

It turns out the script is *not* the problem! Firefox or IE still
won't open the pages when the script is removed. Any other
suggestions?

Thanks!

Rutger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top