+ Reply to Thread
Results 1 to 3 of 3

Enabling/Disabling ComboBox

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    6

    Enabling/Disabling ComboBox

    Hi,

    I have created 2 Radio Buttons and 2 ComboBoxes (Form Controls used) on an Excel Worksheet and what i what to happen is, if i click on RadioButton1 it will enable ComboBox1 and disable the ComboBox2 and vice-versa. If none of the two radio buttons are selected, both ComboBoxes are also Disabled.
    Last edited by blei; 01-20-2017 at 12:15 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Enabling/Disabling ComboBox

    You would need a third option Button labled None to deselect the other two.

    Assign this macro to all three option buttons.

    Please Login or Register  to view this content.
    The index numbers (1 and 2) are the number of the option button or combobox in the order they were created.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    6

    Re: Enabling/Disabling ComboBox

    thanks AlphaFrog

+ 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. Disabling and re-enabling the AutoFilter from VBA
    By CFD in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-30-2020, 12:12 PM
  2. Enabling and Disabling W/ Drop Box
    By Alkaroth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-24-2016, 03:18 PM
  3. Enabling and Disabling Calculations
    By ZealD in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2012, 09:52 AM
  4. Custom button enabling/disabling
    By FlyinJack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2009, 06:13 PM
  5. Disabling/Enabling macros
    By scardy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2007, 08:30 AM
  6. Userforms: Disabling - Enabling the X
    By Lauri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2006, 02:10 PM
  7. Enabling/Disabling Macros
    By Kevin in forum Excel General
    Replies: 3
    Last Post: 11-16-2005, 07:50 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