...

View Full Version : Start application, Word, Excel...Possible?



DanielHowden
11-17-2011, 01:54 PM
Is it possible to start an Office application like Word or Excel from HTML? What I really want to do is open a spreadsheet for editing so I need it to be in Excel rather than being in the web browser but I can't find a way to do it. Everytime I call the spreadsheet it opens up in the browser as a copy rather than the file itself.

Cheers Daniel.

DanielHowden
11-17-2011, 02:03 PM
Ive made a little progress, this will open Excel but not with the spreadsheet I am asking it for. Both the web page and .xls are in the same folder.

Cheers Daniel.


<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Dim objExcel
Sub Btn1_onclick()
call OpenDoc("Book1.xls")
End Sub

Sub OpenDoc(strLocation)

Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = true
objExcel.Documents.Open strLocation
End Sub

</SCRIPT>
<TITLE>Launch Excel</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Excel File" ID=BUTTON1>
</BODY>
</HTML>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum