+ Reply to Thread
Results 1 to 3 of 3

Need help with VLOOKUP and Condition Setting

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    DUBAI, UAE
    MS-Off Ver
    2012
    Posts
    2

    Need help with VLOOKUP and Condition Setting

    Ok so here is what I am trying to do. I have a form that has many comboboxes on it. I have made the default visibility on most of these false so that they are only seen when I want them to be. Now then, I have tried to trigger a change to the visibility with a Vlookup result. So I have cmb_mod1 which is my value that I want to use a arg1. The range will be worksheet("compressors").range(A1:b1000). Column that the expected result is located in is 2.

    So if cmb_mod1.value = Jge_4 The lookup should search the compressors worksheet column a for the value of JGE_4. Then return a result of "4" for this particular choice from the dropdown. Finally the If condition. Now If ans = "4" then cmb_1cyl1.visible=true and cmb2cyl1.visible=true and cmb_3cyl1.visible=true and cmb_4cyl1.visible=true. However, I cannot get the visibility to change.

    Hoping for any help is what may be causing my condition change. Code below:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    01-29-2015
    Location
    DUBAI, UAE
    MS-Off Ver
    2012
    Posts
    2

    Re: Need help with VLOOKUP and Condition Setting

    Nevermind I found my brain under the table and put it back in. I have it working now with the exception of a null value return. Have that fixed up in a jiffy.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Need help with VLOOKUP and Condition Setting

    Good to hear that.

    Please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.
    Best Regards,

    Kaper

+ 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. [SOLVED] Setting a constant in a vlookup formula
    By Diana2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2014, 06:11 PM
  2. Replies: 1
    Last Post: 06-14-2012, 11:24 AM
  3. Using SumIf in VBA - Having trouble setting the condition
    By Aquila2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2012, 05:27 AM
  4. Replies: 0
    Last Post: 10-26-2011, 06:18 AM
  5. [SOLVED] VLOOKUP in a dynamic setting
    By Liz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2006, 12:25 AM

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