title: Error when calling subroutines "Expected Variable or Procedure, not Module."
body: <p>I am trying to create a subroutine that will call one of a couple of other subroutines.</p>
  
  <p>When I use a call inside an if statement I get an error: </p>
  
  <blockquote>
    <p>Expected Variable or Procedure, not Module.</p>
  </blockquote>
  
  <p>Here's the call procedure:</p>
  
  <pre><code>Call schedule_3_day(shift1, ActiveWorkbook.Sheets("Employees"), ActiveWorkbook.Sheets("3 Day Template"))
  </code></pre>
  
  <p>Here's the function to which it refers.</p>
  
  <pre><code>Sub schedule_3_day(ByRef sourcesheet As Worksheet, ByRef employeesheet As Worksheet, ByRef template As Worksheet)
  </code></pre>
  
  <p>On it's own, i.e. when it is a self contained subroutine, schedule_3_day works as intended. I am trying to alter it to pass user defined variables into it.</p>