Results 1 to 4 of 4

VLOOKUP in VBA - Text Boxes

Threaded View

karl_009 VLOOKUP in VBA - Text Boxes 01-15-2010, 05:49 PM
Leith Ross Re: VLOOKUP in VBA - Text... 01-15-2010, 07:46 PM
karl_009 Re: VLOOKUP in VBA - Text... 01-15-2010, 08:48 PM
karl_009 Re: VLOOKUP in VBA - Text... 01-16-2010, 01:15 PM
  1. #1
    Registered User
    Join Date
    04-09-2008
    Posts
    65

    VLOOKUP in VBA - Text Boxes

    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;

    Private Sub phoneport_Change()
    
    Me.phoneport.Value = Application.WorksheetFunction.VLookup(Me.phoneext.Value, Sheets("LookupData").Range("A2:B23"), 2, False)
    
    End Sub
    Thanks for any help

    Karl
    Last edited by karl_009; 01-16-2010 at 01:15 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1