Hello,
Formula :
Dim machines As String
Dim wk As Integer
Dim var As Integer
machines = "LB300"
wk = 1027
var = Application.WorksheetFunction.CountIfs(Sheets("Hoofd-Overzicht").Range("A:A"), "&wk&", Range("D:D"), "&machine&")
For x = 1 To ((Range("$F$3") - 1) / ActiveWorkbook.Worksheets("Ignore").Range("C20")) - (" &var& ")
i seem to get an error on the last part, after i entered the " -(" &var& ") " bit.
i can't seem to find out what the error is.
( the dim var formula is tested in the excel sheet and works)
Can anyone help me plz?
kind regards!
Formula :
Dim machines As String
Dim wk As Integer
Dim var As Integer
machines = "LB300"
wk = 1027
var = Application.WorksheetFunction.CountIfs(Sheets("Hoofd-Overzicht").Range("A:A"), "&wk&", Range("D:D"), "&machine&")
For x = 1 To ((Range("$F$3") - 1) / ActiveWorkbook.Worksheets("Ignore").Range("C20")) - (" &var& ")
i seem to get an error on the last part, after i entered the " -(" &var& ") " bit.
i can't seem to find out what the error is.
( the dim var formula is tested in the excel sheet and works)
Can anyone help me plz?
kind regards!