Very nice. I was working on my own excel classes, but I see this does lots.
Im my example, I can see from the code that arguments to the Add method
aren't optional. Thanks.
Maybe this should be in the python cookbook?
-- Stephen
srijit@yahoo.com wrote:[color=blue]
> Hello,
> Refer the following link:
>
http://groups.google.com/groups?hl=e...gle.com#link11
>
> Does it help you? If it doesn't, let me know what improvements are
> required.
>
> Regards,
> Srijit
>
> Stephen Boulet <Stephen.Boulet@no.spam.motorola.com> wrote in message news:<bi3gg3$8pk$1@newshost.mot.com>...
>[color=green]
>>I'm having trouble scripting Excel to embed a chart from python.
>>
>>Say I have created a sheet object and a workbook object, "xlSheet" and
>>"xlBook".
>>
>>Creating a chart in front of my sheet is as easy as:
>>
>>xlSheet.Select()
>>xlChart = xlBook.Charts.Add()
>>
>>Now how do I tell it to go embed itself in my sheet? In VBA, it might be
>>something like:
>>
>>xlChart.Location Where:=xlLocationAsObject, Name:=xlSheet.Name
>>
>>Thanks.
>>
>>(Is there a newsgroup/list with more of a focus on issues like this than
>>c.l.py?)
>>
>>-- Stephen[/color][/color]