Re: GetObject-question

From: Tom Ogilvy (twogilvy_at_msn.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 12:17:49 -0400

Use the shell command and point it to the proper executable, then perhaps
you can get a reference to it using the caption. GetObject will always use
the last registered version - so an alternative would be to reregister xl97,
but that probably isn't advisable.

-- 
Regards,
Tom Ogilvy
"Tom" <tstruebi@gmx.net> wrote in message
news:O07tLOwTEHA.3332@tk2msftngp13.phx.gbl...
> Hi
>
> I have installed four Excel versions on my pc (97, 2000, XP & 2003). I
have
> written an external vba script, that opens an Excel instance. Now I'd like
> to test my script with 97, but the script always opens Excel 2003. I'm
using
> the following comand:
>
>     On Error Resume Next
>         Set oXL = GetObject(, "Excel.Application.8")
>
>         If Err.Number <> 0 Then
>             Set oXL = CreateObject("Excel.Application.8")
>         End If
>
>     On Error GoTo 0
>     oXL.Visible = True
>
> Any ideas how to open Excel 97? Many thanks in advance!
>
> Tom
>
>
>


Relevant Pages

  • RE: Separating a word file using executable script
    ... you good in Visual Basic Tom? ... >> I have a 200 page word document that contains information on applications. ... >> I'm hoping that the script will be an executable file. ... >> in a folder along with the script and run it from the folder. ...
    (microsoft.public.word.vba.general)
  • RE: message and batch file
    ... Tom, Thank you so much for your help. ... I have now created a second script to enable the same application that was ... file I was running has a one line command to disables the application.) ... disable the apps seleted or just run a batch file for the apps selected. ...
    (microsoft.public.windows.server.scripting)
  • Re: [SLE] electronic document storage system
    ... > I've tested the script below and it seems to work just fine. ... > # The file format you wish to change ... > echo Running $0 ... Tom Nielsen ...
    (SuSE)
  • Re: [SLE] Firewall is getting hammered...help
    ... Tom Nielsen wrote: ... I had grep'ped for 'DPT=135' through all the accumulated messages log files ... and dumped them to a file, then ran this script against it. ... Wrote to them, but have had nothing back, except more probes. ...
    (SuSE)
  • Re: Worksheet copy without user interaction
    ... sorting preferences, but all the source data is the same. ... My approach would be to write a script to update the workbooks. ... users run the script rather than directly opening Excel. ... opens Excel for them and does all the updates. ...
    (microsoft.public.excel.programming)