Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
VBA Code:
Private Sub UserForm_Activate()
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(choosecols(filter(Work_Orders,(work_orders[main work center]=G139)*(Work_Orders[Order Status]="Released"),""),18))
End Sub
This error occurs on this line of code:
VBA Code:
me.Label31.Caption = application.WorksheetFunction.CountA(choosecols(filter(Work_Orders,(work_orders[main work center]=G139)*(Work_Orders[Order Status]="Released"),""),18))
This code actually works inside a spreadsheet cell but not in VBA. "Work_Orders" is the name of the table. Thanks
VBA Code:
=CountA(choosecols(filter(Work_Orders,(work_orders[main work center]=G139)*(Work_Orders[Order Status]="Released"),""),18))