+ Reply to Thread
Results 1 to 8 of 8

Hiding option button (radio button) when hiding row

  1. #1
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Hiding option button (radio button) when hiding row

    It's weird but true - I have two yes/no option buttons in two different rows (4 buttons total). While I'm working in the document I can hide and unhide the row and the buttons hide and unhide perfectly. I have placement set to 1 (move and size with cells). When I save and exit the file and then open it up again, all the radio buttons have been shrunk down to 0 height and are impossible to see/find. I have to reset the size programmatically to find them and when I see them again they are in a higher location than when saved.

    I made sure the rows were tall enough to fully contain the button.

    There is nothing in the on Open or on Close events (no workbook events).

    Any suggestions for keeping these buttons in the correct place when hiding rows? (They are active x buttons not form controls.)

    Thanks!
    Last edited by ker9; 01-13-2012 at 05:57 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding option button (radio button) when hiding row

    Have you tried to lock the Aspect Ratio in The Format Control?
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Hiding option button (radio button) when hiding row

    Thank you for your response. I just tried it - the buttons stay where they were - which is not in the correct place when a row above them is hidden. They are not moving with the row they are in.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding option button (radio button) when hiding row

    In the Properties window then change the Placement Value from 2 to 1. Also important is to resize the Radio Button to just inside the borders of the row you wish to hide. Try it! It works for me!

  5. #5
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Hiding option button (radio button) when hiding row

    Thank you - I have doubled checked all the settings and they are placement 1, aspect ratio locked and clearly inside the row. As I said everything works great while I'm in the document, the problem arises when I save and close the file and then reopen it - at that point the buttons are all messed up again.

    Edit: The rows are hidden before I close the file and stay hidden until another button unhides them. The are not linked to a cell - it resets the Top on all of them to what appears to be the very top of the first hidden row (rows 9 & 10).
    Last edited by ker9; 01-13-2012 at 06:55 PM.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding option button (radio button) when hiding row

    Hello ker9,

    See attached WorkBook. No problem. Do you perhaps have some VBA code in yours? If Yes, Something in there is messing you around!
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-16-2010
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2010
    Posts
    278

    Re: Hiding option button (radio button) when hiding row

    There is a quite a bit of code in the document, almost all relating to checkboxes in rows further down. There is no workbook event code (nothing on open/close). Nothing anywhere that would force option buttons to change location/size. I'm going to have to give up for the night and try again fresh tomorrow. Thank you for your help.

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hiding option button (radio button) when hiding row

    Check if your VBA code contains any "Columns.Autofit", or resizing of Rows. It is a wild geuss, but we will hopefully get there eventually.

    'Till later then!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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