+ Reply to Thread
Results 1 to 3 of 3

Disable option in list.

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Utrecht, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    14

    Disable option in list.

    Dear sir/madam,

    Is it possible to disable a option in a list?
    For example:

    In cell B1 the user can choose categories shares or bonds. In cell B2 the user can choose a valuation method. If the user choose bonds in cell B1, then I want the option Fair value disabled in the list of cell B2.

    Is it possible to do that using macros?

    Thanks in advance.

    Kind regards,

    Ka-Wai
    Attached Files Attached Files
    Last edited by kawaitang; 10-20-2014 at 04:36 AM.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Disable option in list.

    Hi Ka-Wai,

    You don't really need a macro for this. I think you can achieve this by some clever use of named ranges.
    Assign a few named ranges below

    Define the two names where 1 is the list of valuation methods, and 2 is a blank item.
    Please Login or Register  to view this content.
    Then define 2 more, 1 for the Category, and 2 is a named range with an IF statement, which is driven by Category to pick one or the other lists above.
    Please Login or Register  to view this content.
    The attached workbook demonstrates this concept.
    Attached Files Attached Files
    Last edited by quekbc; 10-20-2014 at 06:02 AM. Reason: Added workvbook

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    Utrecht, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Disable option in list.

    Thank you for your fast reply sir. I will try this.

+ 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] Multiple option buttons - Need VBA to disable second group of option buttns based on respo
    By ex123 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2013, 03:30 AM
  2. Replies: 1
    Last Post: 06-16-2013, 12:35 AM
  3. [SOLVED] Disable Option in Como Box
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 04:05 AM
  4. How to disable smoothline option.
    By Sureshkrishnan in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-15-2005, 09:05 AM
  5. disable save as.. option
    By onidallap in forum Excel General
    Replies: 0
    Last Post: 04-20-2005, 09:23 AM

Tags for this Thread

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