+ Reply to Thread
Results 1 to 6 of 6

If one of two OptionButton from Form Controls selected hide textbox

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

    If one of two OptionButton from Form Controls selected hide textbox

    Hi,

    please help me write a macro to hide textbox when one of two optionbuttons is selected and unhide when the other is selected.

    Thanks !

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: If one of two OptionButton from Form Controls selected hide textbox

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

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

    Re: If one of two OptionButton from Form Controls selected hide textbox

    Thanks Bernie but it works only for ActiveX. I need a solution for Form Controls OptionButton. Do you have any idea ?

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: If one of two OptionButton from Form Controls selected hide textbox

    You need to assign macros to your two option buttons, like

    Please Login or Register  to view this content.

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

    Re: If one of two OptionButton from Form Controls selected hide textbox

    Thanks for help Bernie. Can I ask you one more question? Is it possible to assign a macro only to one option button and do the process of hiding/unhiding textbox. The option button might be in a group of course.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: If one of two OptionButton from Form Controls selected hide textbox

    Not really. Once an option button is selected, then it cannot be re-clicked to change it. Another button on the same frame needs to be clicked to clear it.

+ 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. macro needed to hide form controls
    By excelhelpseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2015, 10:56 AM
  2. [SOLVED] Specific Picture on User Form selected from TextBox Value
    By Colin Smit in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-02-2014, 01:44 PM
  3. How to store the path of the last form textbox selected
    By Feliped in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2014, 04:23 PM
  4. Hide all Form Controls VBA
    By clapforthewolfman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 05:52 PM
  5. [SOLVED] Hide TextBox with OptionButton
    By zplugger in forum Excel General
    Replies: 4
    Last Post: 09-24-2012, 04:56 PM
  6. Replies: 0
    Last Post: 01-27-2011, 01:43 PM
  7. [SOLVED] How get a row number of the controls(sample:optionbutton)
    By cyberarmao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2006, 03:45 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