title: Call a macro with parameters : Python win32com API
body: <p>What I want to do is call a macro from my python code. Here isa sample of the sources :</p>
  
  <pre><code>xl = win32.gencache.EnsureDispatch('Excel.Application')
  xl.Visible = 1
  xl.Workbooks.Open("C:\\Program Files\\Microsoft Office\\Office14\\XLSTART\\perso.xlsm")
  xl.Workbooks.Open(argv[1])
  xl.Application.Run('perso.xlsm!' + argv[2])
  xl.Application.Run('perso.xlsm!' + argv[2] + '2')
  xl.Workbooks.Open(argv[0])
  xl.Application.Run('perso.xlsm!aggregate_report_ouverture_appli')
  xl.Application.Run('perso.xlsm!macro', 'lol')
  xl.Save()
  xl.Quit() 
  </code></pre>
  
  <p>The first two macro are working fine. But the last need a parameter to be set ("lol" in this case). With this try :</p>
  
  <pre><code>xl.Application.Run('perso.xlsm!macro', 'lol')
  </code></pre>
  
  <p>My macro is call but the parameter is not set. Any idea how to do this or where I can find the "javadoc" of this module (yeah i am from Java world !).</p>
  
  <p>If you need more explanations just le me know.</p>
  
  <p>Thanks you.</p>
  
  <p>Damien.</p>