> From someone who is familiar with Perl (but a newbie in
> Python), here's a snippet of Perl code which uses the syntax that
> Biju refers to:
> 
>         use Win32::OLE;
>         my $xl = Win32::OLE->new('Excel.Application', 'Quit');
>         my $book = $xl->Workbooks->Open('c:\My Documents\Perl\test.xls');

Thanks!  The translation would be:

from win32com.client import Dispatch
xl = Dispatch("Excel.Application")
xl.Visible = 1 # Not in the Perl code, but probably required?
book = xl.Workbooks.Open("blah")

Mark.
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to