Code:
Private Sub GetRoomPrice_Click()
Set PriceTable = Range("Prices")
If RoomNR.Text = "" Then GoTo e
RoomPrice = WorksheetFunction.VLookup(RoomNR.Text, PriceTable, 2)e:
End Sub
when i use this code in the button that is on my form i get the following error..
" Run-time error '1004':
Unable to get the VLookup property of the Worksheetfuntion class
"
but the same row works for me fine in my other form, what seems to be the problem ?