+ Reply to Thread
Results 1 to 3 of 3

Unhide/hide textbox with option button

Hybrid View

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Unhide/hide textbox with option button

    Hi all,

    please help me with this macro. I have 2 option buttons in GroupBox. I would like to have one macro, which shows a texbox when first option button is selected and hide text box when first option buttonis not selected.

    Sub OptionButton1_Clik()
    ActiveSheet.Shapes("text1").Visible = True
    End Sub
    Sub OptionButton2_Clik()
    ActiveSheet.Shapes("text1").Visible = False
    End Sub
    Topic also on http://www.excelforum.pl/topics3/ukr...041.htm#303556
    Last edited by wrybel; 09-27-2016 at 04:40 AM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Unhide/hide textbox with option button

    Try with Checkbox !!
    Private Sub CheckBox1_Click()
    With ActiveSheet.Shapes("TextBox1")
    .Visible = Not .Visible
    End With
    End Sub

  3. #3
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Unhide/hide textbox with option button

    I need to select one and unselect other. Check box doesn't have this option.

+ 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. Required macro with button/option to hide unhide several sheets
    By vishpuj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-25-2015, 06:43 AM
  2. [SOLVED] Textbox and Option Buttons - If Textbox has a Value then an Option Button must be selected
    By MeerkatMatt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2014, 07:45 AM
  3. [SOLVED] Need Option Button To Hide Or Unhide Worksheets
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-13-2014, 12:03 AM
  4. [SOLVED] hide/unhide textbox
    By sujimon in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-22-2013, 05:23 AM
  5. Protect the Hide/Unhide option
    By Bestycame in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2011, 01:48 PM
  6. Hide row if cell is a certain value, with unhide toggle option
    By stir-crazy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-16-2008, 09:16 PM
  7. Hide/Unhide Option - Need to consider all options!
    By Turquoise_dax in forum Excel General
    Replies: 3
    Last Post: 06-15-2006, 04:17 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