Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
VBA Code:
Worksheets("Work Orders").Activate
'**********************************************************************************************************************************
'Totals ALL Processing Work Orders
Me.Label15.Caption = Application.WorksheetFunction.CountIf(Range("L:L"), "TPM Processing Technician (P4TPMPRO)")
'Totals Closed Processing Work Orders
Me.Label31.Caption = Application.WorksheetFunction.CountA(Filter("A:A", ("L:L" = "TPM Processing Technician (P4TPMPRO)") * ("R:R" = "Technically completed")))
'----------------------------------------------------------------------------------------------------------------------------------
Runtime error 13 Type mismatch occurs
VBA Code:
Me.Label31.Caption = Application.WorksheetFunction.CountA(Filter("A:A", ("L:L" = "TPM Processing Technician (P4TPMPRO)") * ("R:R" = "Technically completed"))))
So I then tried change the code to the following and still received the same error:
VBA Code:
Me.Label31.Caption = Application.WorksheetFunction.CountA(Filter(Range("A:A"), Range("L:L") = "TPM Processing Technician (P4TPMPRO)") * Range("R:R" = "Technically completed"))
Thank you