+ Reply to Thread
Results 1 to 4 of 4

vLOOKUP in VBA

  1. #1
    Forum Contributor
    Join Date
    03-03-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    123

    vLOOKUP in VBA

    Hi there, I am new here, and would like some help.( I am new to using VBA)

    I have created a Userform in excell Visual basic, where I create new customers and place them in a database. Each customer have a ID, name, surname, address, etc, each.

    Now I want to create a new form that retrieve (and update) some info that I have entered into that database. In exell the function is VLookup. Basically I want a Textbox1 where I enter a user ID, and the corresponding info in the database must show up in TextBox2 in the same UserForm. Is that possible, and if so, any example code perhaps?

    Thanking you in advance,

    Jakes


    I am using Excell 2007
    Last edited by Jakes; 03-03-2011 at 04:16 PM.

  2. #2
    Forum Contributor
    Join Date
    03-03-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    123

    Re: vLOOKUP in VBA

    O dear, this is posted in the wrong forum! I apologize, Mods.

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: vLOOKUP in VBA

    Jakes, See if this is something that you can use.

    Click the Command Button, Enter an ID# from the drop down menu.
    Attached Files Attached Files
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  4. #4
    Forum Contributor
    Join Date
    03-03-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    123

    Re: vLOOKUP in VBA

    This is exactly what i was looking for! Thanks very much!
    Now if I may ask - How do I add a Update command button, that update the customer information, say for instance the address has changed?
    Last edited by Jakes; 03-03-2011 at 04:14 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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