+ Reply to Thread
Results 1 to 13 of 13

Remove/Hide Active Cell Border

  1. #1
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Remove/Hide Active Cell Border

    I have read loads of posts, regarding removing/hiding the active cell border from the selected cell on a worksheet, however, none of the posts I've found actually provide a definitive answer as to whether this is:

    a) possible or
    b) the correct code to achieve this

    Does anyone know if this is actually possible to do and if so, the code that will achieve it?

    If it is possible, is there any way to have the behaviour in some sort of toggle format, so it can be either shown or hidden if required?

    Many thanks...

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove/Hide Active Cell Border

    Hi try this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Remove/Hide Active Cell Border

    as far as I know you can't do it.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove/Hide Active Cell Border

    Hi Tom,

    I tried this, but it errors on .LineStyle = xlNone?

    Any thoughts?

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove/Hide Active Cell Border

    Did you paste this into module of worksheet?

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Remove/Hide Active Cell Border

    by the way I assumed you were talking about the thick black border that excel puts round the current selection, not ordinary cell borders.

  7. #7
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove/Hide Active Cell Border

    @Tom, Yes, I tried putting the code in a module, but it makes no difference...

    @Joseph, yes, exactly that, the thick black border that excel puts round the current selection, not ordinary cell borders.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Remove/Hide Active Cell Border

    then like I said, there is no way I know of to do it. not a common requirement to not be able to see where you are working I guess. ;-)

  9. #9
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Remove/Hide Active Cell Border

    try attachment


    so my code works on borders not on "grid"
    Attached Files Attached Files
    Last edited by tom1977; 05-08-2012 at 07:12 AM.

  10. #10
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove/Hide Active Cell Border

    Um, I agree, this isn't the norm or a common request, but this is for a 'front end' to a series of 'back end' spreadsheets, where it isn't practical to 'protect' the worksheet, but the user really only has the option to select from two drop down data validation lists. Because of the impracticalities of protecting the worksheet, it just looks really messy if the user clicks in any other cells, hence the 'want' to remove the active cell borders from the selected cells...

  11. #11
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Remove/Hide Active Cell Border

    why is it impractical to protect the sheet?
    also, wouldn't it be simpler to use a form instead of an input sheet then?

  12. #12
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Remove/Hide Active Cell Border

    Hi Tom,

    Many thanks for your sample, though I think maybe I didn't explain the problem so well. It is actually the Thick Black Border and Fill Handle when a cell is clicked on that I want to remove, rather than a drawn border on a cell, though your sample could prove very useful for other things, so many thanks for that...

  13. #13
    Registered User
    Join Date
    11-14-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Remove/Hide Active Cell Border

    since this doesn't appear to be an option...I'd just create a work around...remove the gridlines, and header, place a white shape with no borders and hide the activecell behind the object. This way the user does not see the location of the selected cell...they will, however, be able to see the address of the selected location...again, its a work around.

+ 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