Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

IE Hyperlink to Excel Document

Thread Tools
 
Search this Thread
 
Old 2nd Nov 2004, 12:36
  #1 (permalink)  

The Fresh Start Club
Thread Starter
 
Join Date: Jun 2003
Location: UK
Posts: 92
Likes: 0
Received 0 Likes on 0 Posts
IE Hyperlink to Excel Document

I am currently setting up a site on our Intranet that accesses information from various types of document on various servers. One of the documents is an Excel spreadsheet which has worksheets named after the months, i.e. 'Jan' 'Feb' 'Mar 'Apr' etc.

I am trying to find some code (javascript, html or otherwise) that will allow a hyperlink from the Intranet site to not only open the Excel document, but at the worksheet relevant to the current month.

My own attempts at the code have failed , so any help from fellow prooners would be much appreciated.

WP.
Windle Poons is offline  
Old 2nd Nov 2004, 14:19
  #2 (permalink)  

The Fresh Start Club
Thread Starter
 
Join Date: Jun 2003
Location: UK
Posts: 92
Likes: 0
Received 0 Likes on 0 Posts
I should add that the hyperlink is from a drop down menu, and I have had a go at the code myself, which is at the bottom of this post. The menu bit works, but the added bit for the month specific worksheet makes it fall over........

WP.

<form name="navigation" style="position: absolute; margin-top: -12">
<select name="calloutmenu" size="1">
<option value="w:/ops/spectre/excel/ocpilot.xls">Pilot</option>
<option value="w:/ops/spectre/excel/ocobserver1.xls">Obs1</option>
<option value="w:/ops/spectre/excel/ocobserver2.xls">Obs2</option>
<option value="w:/ops//spectre/excel/ocaircraft.xls">Aircraft</option>
</select>&nbsp;<input type="button" value="Go!" onClick="jumpbox()">
</form>

<script language="javascript">
<!--

var openmode=1
var targetframe="main"

function jumpbox(){
today = newDate();
cmonth = new Array(
"#January!A1","#February!A1","#March!A1","#April!A1",
"#May!A1","#June!A1","#July!A1","#August!A1",
"#September!A1","#October!A1","#November!A1","#December! A1"
);
var destination=eval("window.parent."+targetframe)
var ddbox=document.navigation
if (openmode==2)
destination=window.parent
destination.location=
ddbox.calloutmenu.options[ddbox.calloutmenu.selectedIndex].value.cmonth[today.getMonth()]
}
//-->
</script>
Windle Poons is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.