E
excelent
I made this function and it works fine
xDate is 1 cell vith a date, xRange is a range vith som difrent dates
Function Vagt(xDate, xRange)
Vagt = Application.WorksheetFunction.Match(Range(xDate), Range(xRange))
End Function
The problem is that i have to use "" to make the function work
=Vagt("L3";"A3:A9";0)
Hav do i change my function so i dont have to use ""
=Vagt(L3;A3:A9;0)
thanks in advance
xDate is 1 cell vith a date, xRange is a range vith som difrent dates
Function Vagt(xDate, xRange)
Vagt = Application.WorksheetFunction.Match(Range(xDate), Range(xRange))
End Function
The problem is that i have to use "" to make the function work
=Vagt("L3";"A3:A9";0)
Hav do i change my function so i dont have to use ""
=Vagt(L3;A3:A9;0)
thanks in advance