Hi,
Am trying to use a VLOOKUP in VBA on a form, I am entering data in one field so data will be displayed in another field.
They are both text boxes.
Here is the code;
Thanks for any help![]()
Private Sub phoneport_Change() Me.phoneport.Value = Application.WorksheetFunction.VLookup(Me.phoneext.Value, Sheets("LookupData").Range("A2:B23"), 2, False) End Sub
Karl
Bookmarks