P
Phillip Topping
I am having trouble getting the VLOOPUP function to work in a macro. I can
get VLOOKUP to work perfectly in a cell formula but when I try and repeat
this in a macro I keep getting an error message.
If dlgFeesForm.txtEquipHirePeriod.Value < 5 Then
dailyvalue = dlgFeesForm.txtEquipHirePeriod.Value
'dailyrate =
Application.WorksheetFunction.VLookup(dailyvalue, DailyHireRates, 2, False)
End If
My error message appears whenever the macro reaches the line with Vlookup in
it, what am I doing wrong??
And yes I know its a comment at the moment, I have done this so I can test
the remainder of the macro.
TIA
Phillip
get VLOOKUP to work perfectly in a cell formula but when I try and repeat
this in a macro I keep getting an error message.
If dlgFeesForm.txtEquipHirePeriod.Value < 5 Then
dailyvalue = dlgFeesForm.txtEquipHirePeriod.Value
'dailyrate =
Application.WorksheetFunction.VLookup(dailyvalue, DailyHireRates, 2, False)
End If
My error message appears whenever the macro reaches the line with Vlookup in
it, what am I doing wrong??
And yes I know its a comment at the moment, I have done this so I can test
the remainder of the macro.
TIA
Phillip