I am trying to create a subroutine that will call one of a couple of other subroutines.
When I use a call inside an if statement I get an error:
Expected Variable or Procedure, not Module.
Here's the call procedure:
Call schedule_3_day(shift1, ActiveWorkbook.Sheets("Employees"), ActiveWorkbook.Sheets("3 Day Template"))
Here's the function to which it refers.
Sub schedule_3_day(ByRef sourcesheet As Worksheet, ByRef employeesheet As Worksheet, ByRef template As Worksheet)
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.