+ Reply to Thread
Results 1 to 4 of 4

Hide rows AND checkboxes in that row with code/macro

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Thumbs up Hide rows AND checkboxes in that row with code/macro

    Hi, I am so not a developer and everything code related I have learned online from forums like this so I hope someone can help me with this!

    Problem: I have a header row with a checkbox (CheckBox1) and if ticked then it should unhide rows 2 to 4 below and if unticked it should hide them again. The problem is that rows 2 to 4 all have a checkbox as well and when the rows get hidden the checkbox remains and I can't work out how to hide it too!

    Code I am currently using to hide rows:

    Please Login or Register  to view this content.
    Can anyone help me amend this so it hides the checkboxes on row 2, 3 and 4 as well? Here's hoping! Thanks.
    Last edited by Riqueza; 08-23-2012 at 05:18 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hide rows AND checkboxes in that row with code/macro

    Are you using the activex checkboxes?

    How about using the wingdings font to create a tick mark in your column instead of the checkbox? Then you will not face the problem of hiding the checkboxes.

    If you check this thread - http://www.excelforum.com/july-compe...move-tick.html
    It will show you how to double click and add/remove a tick mark.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Hide rows AND checkboxes in that row with code/macro

    Hmmm, that is quite good, however the double click I think will annoy my users. I think they would respond better to actual checkboxes.

    I was using the Form CheckBox. Should I be using the ActiveX ones instead?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hide rows AND checkboxes in that row with code/macro

    I was talking about the form checkboxes actually. Both active-x and form checkboxes are the same, just called differently.

    If you do not want to double-click, you can just format the column to wingdings and then ask the user to type in "a". This will insert the checkbox.

+ 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