Results 1 to 7 of 7

Thread: How To Use Option Buttons To Switch Between Sheets

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0

    How To Use Option Buttons To Switch Between Sheets

    Hi All,

    I have a Main Page which holds 13 Option Buttons. I need VBA code so that the Main Page is always visible and there is always 1 month sheet or Record Sheet visible. The only month I want visible is the 1 selected by the option button. So at any 1 time there will be 2 sheets visible (Main Page + month Sheet)....The Main Page is the control page

    Best Regards

    Ray Bugge
    Excel 2010/2013
    Attached Files Attached Files

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi raybugge,

    Welcome to Excel Fox !!

    Please find attached. I have assigned the code for first 3 buttons. Do the same for other buttons as well. To do so, right click on 'Main page' tab > view code and select each button click event from the first drop down on the top of the VB editor window.
    Attached Files Attached Files
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0
    Hi
    That is excellent I could not get April 2014 to work. Have I missed something.
    Thanks for help
    Ray
    Attached Files Attached Files

  4. #4
    Member
    Join Date
    Jul 2012
    Posts
    55
    Rep Power
    13
    Quote Originally Posted by raybugge View Post
    Hi
    That is excellent I could not get April 2014 to work. Have I missed something.
    Yes, you missed a sheet with APRIL 2014 name.

  5. #5
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0
    Yes i realise the sheet for April2014 is missing but i have 12 Option buttons in the code but i cannot get April to appear
    Cheers
    Ray Bugge

  6. #6
    Member
    Join Date
    Jul 2012
    Posts
    55
    Rep Power
    13
    Take a look to file attached. I just create sheet "APRIL 2014" and nothing more. And it's working...
    Attached Files Attached Files

  7. #7
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0
    Thanks Ingolf

Similar Threads

  1. HP Calculator Buttons
    By Howardc in forum Word Help
    Replies: 0
    Last Post: 12-01-2012, 11:12 AM
  2. Strange Excel Spinner Buttons Help??
    By stangirl87 in forum Excel Help
    Replies: 2
    Last Post: 10-08-2012, 07:31 AM
  3. Programmatically format VBA buttons
    By Belleye in forum Excel Help
    Replies: 9
    Last Post: 09-25-2012, 11:18 AM
  4. Minimize and Maximize option in Excel UserForm
    By shabbirtaibany in forum Excel Help
    Replies: 1
    Last Post: 09-23-2012, 07:05 PM
  5. Social Network Buttons
    By Excel Fox in forum Den Of The Fox
    Replies: 1
    Last Post: 07-10-2011, 10:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •