Michel Angelosanto schreef:

> in a script vbs i try to use getobject instead of createobject, because
> my workbook is already open but it does not work.
> Do you know how to use an open window Excel/workbook/sheet ?
>
> Dim xlapp, classeur, feuille
>
> Set xlapp = getObject("Excel.Application")
> xlapp.Visible = True
> Set classeur = xlapp.activeWorkbook
> Set feuille = xlapp.ActiveSheet
> feuille.Range("A1") = "Put text here in A1 for testing"
> Classeur.Saveas "c:\tmp\MonClasseur"
> classeur.Close True 'quitte en sauvant
>
> xlApp.quit
> Set classeur = Nothing
> Set xlapp = Nothing
>
>
http://www.microsoft.com/technet/scr...in/ss0406.mspx


--
Luuk