+ Reply to Thread
Results 1 to 14 of 14

Radio button disabled

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Radio button disabled

    Dear Expert,

    Do you have any idea on how to unchecked the radio button after I select the motor model as an example?
    If I select Motor Model, then the Car and Lorry model has to unchecked the radio button.
    Any formula or function to this matter?
    Excel uploaded for your reference.

    Thank you.
    Attached Files Attached Files
    Last edited by fgfgicare; 07-27-2020 at 04:50 AM. Reason: give examples

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Radio button disabled

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Dear ikboy,

    Thank you for your codes.

    Could you explain your codes?

    Please Login or Register  to view this content.

    Questions as below:-
    1) I have done the same motor module for car and lorry module separately, how do you define the array?
    2) Why the array have to be (4, 5, 6, 10, 11, 12)? What does it mean?
    3) It seems that the radio button still can clicked after the motor module has created?
    Do you have any data validation stated that it cannot click it?

    I have uploaded the excel spreadsheet for you.

    Hope to hear from you soon.
    Attached Files Attached Files
    Last edited by fgfgicare; 07-27-2020 at 07:06 AM. Reason: [code] Your Code [/code]

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: Radio button disabled

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Dear Ali,

    Thank you for the warnings.

    Will improve it in future.

  6. #6
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Radio button disabled

    @fgfgicare,
    Code Get_Shapes_Info: for get information to write array.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Dear ikboy,

    Thank you very much for your coding, and I am unable to understand your coding.

    Would you mind if I can ask you from your coding?

  8. #8
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Hi,

    I have uploaded the same spreadsheet and this time it is a little different question based on the radio button selection.

    Please view the Sheet2, where there example as below: -

    On the selection model – I select “Car”
    On the Car Model – I select “Honda”

    Approved Custom Changes: -
    Door – Radio button: Yes
    Window – Radio Button: No
    Color- Radio Button: Yes
    Bumper- Radio Button: No
    Skirting – Radio Button: No

    If I select the Lorry from selection model group box, the car model group box and approved custom changes group box will be disabled and no one can select for these two group boxes as this is for car model only.

    Could you guide me?

    Thanks.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Radio button disabled

    The easy way to write your code with needs.
    Alt+F10 open the shapes menu amend the option buttons names.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Quote Originally Posted by ikboy View Post
    @fgfgicare,
    Code Get_Shapes_Info: for get information to write array.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Dear ikboy,

    Thank you for your coding. We are nearly there.

    Could you use this method as the above quote for the excel Sheet2 as I am confused on the array?

    Hope to hear from you.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Radio button disabled

    Please Login or Register  to view this content.
    HTH
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Dear ikboy,

    Thanks for your coding.

    Could you realign the coding on the car selection whereby I can reselect the car model and reselect the approved custom changes?

    Please Login or Register  to view this content.
    I tried to change the CarOptions as the code above but there is an error message Attachment 689222

    May I ask where should I correct it?
    Attached Files Attached Files
    Last edited by fgfgicare; 07-31-2020 at 08:26 AM.

  13. #13
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Radio button disabled

    @fgfgicare,
    Use my code “Get_Shapes_Info” or Alt+F10 to open the shapes menu to understand all option buttons what does. As required to write or say what your need lets other to help.

  14. #14
    Registered User
    Join Date
    12-05-2019
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    88

    Re: Radio button disabled

    Dear ikboy,

    Thanks a lot.

+ 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] VBA button to Save Radio-button and clear.
    By horsefish01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2015, 01:17 PM
  2. Replies: 0
    Last Post: 06-10-2014, 10:44 PM
  3. Linking a VBA Form Radio Button to a Option Button
    By buwa84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2014, 01:46 PM
  4. [SOLVED] Disabled X button but wish to create 'Exit' button
    By danlRB80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-16-2014, 02:43 PM
  5. Replies: 3
    Last Post: 08-28-2013, 05:39 AM
  6. Uncheck Radio Button using a Command Button
    By earl54dink in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-08-2008, 05:47 PM
  7. Pressing one radio button to select another radio button
    By raehippychick in forum Excel General
    Replies: 1
    Last Post: 09-13-2007, 11:30 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