+ Reply to Thread
Results 1 to 5 of 5

Lookup tables converted to userform with VBA

  1. #1
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Lookup tables converted to userform with VBA

    Hi
    I have created some tables and used the lookup function to extract information. You enter the condition rating (1,2,0r 3) into table 1 column 2, and the result will appear in table 1 column 3. I would like to create a userform with the use of labels and textboxes extract the info onto the form. I have attached the file and hope someone would kindly put me in the right direction.

    thanks in anticipation.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Lookup tables converted to userform with VBA

    Hi, Based on a slightly shorter version of your formula in C4:
    =OFFSET(E$1,MATCH(A4,E$1:E$30,0)+MATCH(B4,E$4:E$6,0),1)
    the code in the userform for the textbox1_change event should be:
    Please Login or Register  to view this content.
    and the same for textboxes 7-10 change events., dependant on label 1-4 and textbox 1-4.

  3. #3
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Lookup tables converted to userform with VBA

    Thanks, works a treat, could i use spin buttons limiting numbers to 1,2 3

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Lookup tables converted to userform with VBA

    Don't see why not, you would need to put something like:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Lookup tables converted to userform with VBA

    Thanks, it works very well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Updating multiple tables from the same userform
    By rammy123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-30-2013, 06:13 AM
  2. [Solved] 2 way lookup between tables
    By joedrummer in forum Excel General
    Replies: 4
    Last Post: 01-28-2012, 12:49 PM
  3. Lookup in several tables
    By afriedman in forum Excel General
    Replies: 6
    Last Post: 02-16-2011, 04:44 AM
  4. Lookup tables
    By master811 in forum Excel General
    Replies: 1
    Last Post: 09-06-2007, 08:53 AM
  5. [SOLVED] lookup tables
    By Pat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2005, 08:25 PM

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