title: How to run a vba macro through Python win32com that has IRibbonControl as a parameter
body: <p>I want to run a vba macro that has IRibbonControl as a parameter using Python win32com.</p>
  
  <p>For example, my vba sub is looks like below</p>
  
  <pre><code>Public Sub test(control As IRibbonControl)
  
      blabla
  
  End Sub
  </code></pre>
  
  <p>And </p>
  
  <p>And then Python calls test sub using win32com.</p>
  
  <p>What should we put on parameters of a test function?</p>
  
  <pre><code>import os
  import win32com.client
  
  from win32com.client import DispatchEx
  
  xl = DispatchEx('Excel.Application')
  xl.Workbooks.Open("myexcelfile.xlsm")
  
  xl.Application.Run("test", some magic needs here)
  </code></pre>