Launching Excel From internet Explorer

P

pjnesbitt

Hi
I know it is possible to change the settings within internet explore
to launch excel when a link is clicked but i need this web page to ru
on more than one machine, so i was wondering if it is possible to use
script in the web page that would make excel launch when the link i
clicked.
I have found a script that will work for a word document and have trie
to change it so it will function for excel but it doesn't work, an
suggestions?????:confused:
Below is the script i have been trying,
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Dim ojbexecl
Sub Btn1_onclick()
call Openxls("file:///P:\Test.xls")
End Sub

Sub Openxls(strLocation)

Set objexecl = CreateObject("Excel.Application")
objexecl.Visible = true
objexecl.Spreasheets.Open strLocation
End Sub

</SCRIPT>

</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Test.xls">
</BODY>
</HTML
 

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