Ahmed Fawad
Board Regular
- Joined
- Mar 1, 2011
- Messages
- 63
- Office Version
- 2016
- Platform
- Windows
Please guide....
I've got a userfrom for expense posting. I want it to do is when I add a product name in the description it shows the last purchase price in the other textbox and "Not Found" if it's a new product.
What I've done is
Private Sub txtdesc_Afterupdate()
With Me
txtlprice = Application.WorksheetFunction.VLookup(Me.txtdesc, Lists.Range("E:H"), 4, 0)
End With
End Sub
Error:
Run-time error '424':
Object required
TIA
Ahmed
I've got a userfrom for expense posting. I want it to do is when I add a product name in the description it shows the last purchase price in the other textbox and "Not Found" if it's a new product.
What I've done is
Private Sub txtdesc_Afterupdate()
With Me
txtlprice = Application.WorksheetFunction.VLookup(Me.txtdesc, Lists.Range("E:H"), 4, 0)
End With
End Sub
Error:
Run-time error '424':
Object required
TIA
Ahmed