+ Reply to Thread
Results 1 to 3 of 3

Conditional Format a field based on the value in another field

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    Lincoln, NE
    MS-Off Ver
    Excel 2007
    Posts
    30

    Conditional Format a field based on the value in another field

    In the attached workbook, I am creating a userform called frmTicketRequest. I have a combo box called cboSystem which has an option within the drop down of "Other". Immediately following that combo box, I have a label "Other System:" and a text field. I would like this label and text field to be grayed out and the text field locked to prevent entry unless the user selects "Other" from the system drop down. If this is the case, I would like the txtOtherSystem field to have a white background and for it to be unlocked and I would like the lblOtherSystem to have black font.

    I'm having trouble with the specific vba code to handle this conditional formatting.
    Attached Files Attached Files
    Last edited by Lothar69; 07-08-2011 at 10:49 AM.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Conditional Format a field based on the value in another field

    See attached file. This is the code I added in combobox change event:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-23-2011
    Location
    Lincoln, NE
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Conditional Format a field based on the value in another field

    Thank you Antoka05! Works like a charm!

+ 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