Windows Vista Forums

start word, excel from script
  1. #1


    Lennart Guest

    start word, excel from script

    Hi,

    I'm using a script to start excel and load requested file. We are know
    moving to Vista and it don't works any longer. Excel starts but the file
    don't load.

    This is the script I am using

    ****************************'
    strPoA="\\sesowebdev05\magazinet\wwwroot\aktivitetsuppf\test\PoA.xls"

    Sub launchApplication(value)
    Dim objWshShell
    'On Error Resume Next
    ' Create the Shell object and run the application
    Set objWshShell = CreateObject("WScript.Shell")
    objWshShell.Run value, 3
    ' Release the memory used by the Shell object
    If IsObject(objWshShell) Then
    Set objWshShell = Nothing
    End If
    End Sub
    </SCRIPT>
    <A onclick=launchApplication(strPoA) href="#">excelfile</A>
    ***************************************************

    Does anyone have any clue about this issue? When I tried with textfile and
    notepad, everything works fine on Vista.



    Regards
    Lennart

      My System SpecsSystem Spec

  2. #2


    mr_unreliable Guest

    Re: start word, excel from script

    Lennart wrote:

    > I'm using a script to start excel and load requested file. We are know
    > moving to Vista and it don't works any longer. Excel starts but the file
    > don't load.
    >
    hi Lennart,

    Could that script possibly be hosted by IE?

    If so, then you might be running into some sort of
    a security problem. That is, if you allow an IE
    script to launch an app, then there is all sorts of
    mischief that the scripter could do to your system
    -- even more so with excel, because an excel file
    can contain a toxic bunch of vba code wrapped up
    inside.

    cheers, jw
    ____________________________________________________________

    You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
    the answers will be applicable to the questions)


      My System SpecsSystem Spec

  3. #3


    Lennart Guest

    Re: start word, excel from script

    Ok, tanks. yes it is hosted by IE. Any suggestion on what security to change
    to make it run again?

    "mr_unreliable" wrote:

    > Lennart wrote:

    > > I'm using a script to start excel and load requested file. We are know
    > > moving to Vista and it don't works any longer. Excel starts but the file
    > > don't load.
    > >
    >
    > hi Lennart,
    >
    > Could that script possibly be hosted by IE?
    >
    > If so, then you might be running into some sort of
    > a security problem. That is, if you allow an IE
    > script to launch an app, then there is all sorts of
    > mischief that the scripter could do to your system
    > -- even more so with excel, because an excel file
    > can contain a toxic bunch of vba code wrapped up
    > inside.
    >
    > cheers, jw
    > ____________________________________________________________
    >
    > You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
    > the answers will be applicable to the questions)
    >
    >

      My System SpecsSystem Spec

  4. #4


    Al Dunbar Guest

    Re: start word, excel from script


    "Lennart" <Lennart@xxxxxx> wrote in message
    news:6CF454C5-6806-47D5-8FA4-12396A93A573@xxxxxx

    > Ok, tanks. yes it is hosted by IE. Any suggestion on what security to
    > change
    > to make it run again?
    I'd advise against reducing the security settings on your browser for this
    purpose. Try renaming the file from whatever.htm to whatever.hta.

    /Al

    > "mr_unreliable" wrote:
    >

    >> Lennart wrote:

    >> > I'm using a script to start excel and load requested file. We are know
    >> > moving to Vista and it don't works any longer. Excel starts but the
    >> > file
    >> > don't load.
    >> >
    >>
    >> hi Lennart,
    >>
    >> Could that script possibly be hosted by IE?
    >>
    >> If so, then you might be running into some sort of
    >> a security problem. That is, if you allow an IE
    >> script to launch an app, then there is all sorts of
    >> mischief that the scripter could do to your system
    >> -- even more so with excel, because an excel file
    >> can contain a toxic bunch of vba code wrapped up
    >> inside.
    >>
    >> cheers, jw
    >> ____________________________________________________________
    >>
    >> You got questions? WE GOT ANSWERS!!! ..(but, no guarantee
    >> the answers will be applicable to the questions)
    >>
    >>


      My System SpecsSystem Spec

  5. #5


    mr_unreliable Guest

    Re: start word, excel from script

    Lennart wrote:

    > Ok, tanks. yes it is hosted by IE. Any suggestion on what security to change
    > to make it run again?
    >
    Sorry Lennart, I am still using win98 and so I don't have
    the benefit of all the security enhancements you have with
    the newer systems.

    Perhaps somebody who is more up-to-date will come along
    and answer your question.

    cheers, jw

      My System SpecsSystem Spec

start word, excel from script problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista and MS Word and Excel mcaffey Vista General 5 23 Oct 2008
need Word & Excel back! FloridaFaberFive .NET General 1 03 Jun 2008
Word&Excel:Add-Edit Toolbar&Buttons:Autocorrect to Excel Toolbar!! Wayne4Js Vista General 5 12 May 2008
Where is Word and Excel in my other accounts Dan W Vista General 1 13 Dec 2007
Word and Excel Alan Harvey Vista General 7 28 Aug 2007