title: VBA cannot find my macro when it has parameters
body: <p>I am trying to write a macro that will be attached to a series of buttons in an Office 2010 backstage tab.  Depending on the button clicked the Macro should be called with different parameters.</p>
  
  <p>The issue I am having is that if the Macro is defined as having parameters then VBA will display the "Macros" dialog box, with no Macros listed.  Removing the parameters from the declaration will allow the macro to run, but it needs the Macros to make sense.</p>
  
  <p>The VBA being used is below:</p>
  
  <pre><code>Sub NewDocs(docType As String, docTemplate As String)
     Dim sMyShellCommand As String
     sMyShellCommand = "C:\NewDocs.exe " &amp; docType &amp; docTemplate
     WordBasic.Shell (sMyShellCommand)
  End Sub
  </code></pre>
  
  <p>Any ideas</p>