+ Reply to Thread
Results 1 to 4 of 4

Selected Case, If Case 0 = then Combobox3 Enable = False

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Selected Case, If Case 0 = then Combobox3 Enable = False

    Good day,
    Trying to figure our how to do the following:

    Userform:
    Please Login or Register  to view this content.
    My list is based on a control sheet that I have but I need that if Combobox 2 = Case 0 then to make my Combobox3.Enable = False and if not Case 0 then Combobox3.Enable = True.

    Is this possible or I would need a (Combobox2_Change) If / Else /End If function?
    Click the star icon in the lower left part of the contributor's post and add Reputation if we have helped you .

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Selected Case, If Case 0 = then Combobox3 Enable = False

    Hi,

    Before we can answer your question, we need to know where the following values come from and if they are local or global in scope:
    a. list1
    b. list2
    c. list3
    d. arrData

    You may need to add 'Option Explicit' to your module. To prevent typos from ruining days and weeks of work 'Option Explicit' is NEEDED at the top of each code module. This prevents errors caused by missspellings and FORCES every variable to be DECLARED (e.g. dim i as Integer).
    http://www.cpearson.com/excel/DeclaringVariables.aspx

    Lewis

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Selected Case, If Case 0 = then Combobox3 Enable = False

    Just put the line
    Please Login or Register  to view this content.
    at the beginning of the ComboBox2_Change event.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Selected Case, If Case 0 = then Combobox3 Enable = False

    Thank you Mike...works great

+ 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. Replies: 7
    Last Post: 04-18-2014, 04:11 PM
  2. [SOLVED] Lower Case to Upper Case but No Auto Correction : Solved by Mod (6StringJazzer)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 10:44 AM
  3. [SOLVED] Match Case := False when looking for certain text
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 07:23 AM
  4. Write a subroutine in a module to change case upon exit of a cell to upper case
    By Stephd22 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2013, 06:39 PM
  5. [SOLVED] Convert 1st letter of word to Upper Case and rest to lower case
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-23-2013, 11:44 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