+ Reply to Thread
Results 1 to 5 of 5

Form Controls Option Button

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Form Controls Option Button

    I cant get this to work, it comes back with run-time error '424': object required

    I am using form controls option button not activeX controls. What do I need to do here?


    HTML Code: 

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

    Re: Form Controls Option Button

    • Put this code in a standard code module like Module1 and not in a worksheet code module.
    • In the code, change the names of the 3 option buttons to the same names of the form-type option buttons on your worksheet.
    • Right-click on each of your three option buttons and assign this one macro to them.

    Please Login or Register  to view this content.
    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
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Form Controls Option Button

    Thanks, but that is trying to run it. I just want to add in into my exicting macro at different points. I dont want it to to anything when I click it.

    I want it to put "Alamo" in ("D14") if if option button12 is selected. I want this to run as part of a bigger macro. I just cant it to work though.

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

    Re: Form Controls Option Button

    Try something like this...

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Form Controls Option Button

    Awesome. Thanks for the help.

+ 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. Option Button (Form Control) - Different Entries
    By NeedForExcel in forum Excel General
    Replies: 5
    Last Post: 02-11-2014, 09:48 AM
  2. Hide a picture button placed in all sheets using a option button (form control)
    By lagaranch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 10:33 AM
  3. VBA User Form - Option Button
    By nivassrii in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-26-2011, 06:18 AM
  4. Form with Button Controls
    By countryred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-24-2011, 01:48 PM
  5. Form Control Option Button Code
    By Boston in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2010, 02: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