Re: [python-win32] How to insert macro into ms word by using python?

2012-07-20 Thread Tim Roberts
wanglei wrote: > Hello, I have some problem with pywin32com programming in ms word? I > have a macro code, but my program language is python-extension, I want > to insert the macro into ms word? > And the word object is created by pywin32com, like docApp = > win32com.client.Dispatch('Word.Applicati

Re: [python-win32] python-win32 with vba

2012-07-20 Thread Tim Roberts
汪雷 wrote: > Hi, I don't know how to handle ms word's events. > By VBA, the code is as following: > > > Private Sub Ducoment_Open(): > > my code > > End Sub. > > The code in ms word macro is to capture the 'Open' event, when the word > is opened, my code will be executed. How can I perform b