+ Reply to Thread
Results 1 to 19 of 19

Running the code in an option button from a seperate normal button click

Hybrid View

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

    Re: Running the code in an option button from a seperate normal button click

    Add this to the bottom of your Plus and Minus macros. Change the names of the "Option Buttons" to suit. Don't use the option button captions. Use thier names as seen in the name box to the left of the formula bar.

        With ActiveSheet
            Select Case xlOn
                Case .OptionButtons("Option Button 1").Value: Call NoRake
                Case .OptionButtons("Option Button 2").Value: Call AveRake
                Case .OptionButtons("Option Button 3").Value: Call RatioedRake
                Case .OptionButtons("Option Button 4").Value: Call TurboRake
                Case .OptionButtons("Option Button 5").Value: Call HyperRake
            End Select
        End With
    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.

  2. #2
    Registered User
    Join Date
    08-29-2015
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    13

    Re: Running the code in an option button from a seperate normal button click

    Amazing AlphaFrog thank you so much!

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

    Re: Running the code in an option button from a seperate normal button click

    Quote Originally Posted by camikhazi View Post
    Amazing AlphaFrog thank you so much!
    You're welcome. Thanks for the feedback.

+ 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] userform to select option button without running the code that's in it
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-22-2015, 04:09 PM
  2. Macro Option Button Click Cannot be Found Error
    By src16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 08:42 PM
  3. Replies: 1
    Last Post: 02-26-2013, 08:33 PM
  4. Option button click ... then focus back to sheet ?
    By dannac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2012, 02:05 AM
  5. Replies: 0
    Last Post: 07-18-2012, 09:45 AM
  6. [SOLVED] Check Criteria On Button Click Before Running Macro
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-06-2012, 04:56 PM
  7. Option button click with if else statment
    By peedarp1985 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2010, 12:11 AM

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