I'm trying to pass a variable into my evaluate statement and I can't get the syntax correct. Let me know if you can help
This works:
Labor = Evaluate("=sumproduct(--(g10:g50000="Forecast"), --(j10:J50000="CWIP"), --(y10:y50000=2020), --(z10:z50000=4),(aq10:aq50000))")
but I want to change the 4 to be a variable for the month, so I tried this:
Dim Month as Integer
Month = 4
This works:
Labor = Evaluate("=sumproduct(--(g10:g50000="Forecast"), --(j10:J50000="CWIP"), --(y10:y50000=2020), --(z10:z50000=4),(aq10:aq50000))")
but I want to change the 4 to be a variable for the month, so I tried this:
Dim Month as Integer
Month = 4