Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2010
    Posts
    50
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Start application, Word, Excel...Possible?

    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.

  • #2
    New Coder
    Join Date
    Nov 2010
    Posts
    50
    Thanks
    16
    Thanked 0 Times in 0 Posts
    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.

    Code:
      <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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •