+ Reply to Thread
Results 1 to 15 of 15

can you remove the standard black cell border when clicking on cell?

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    can you remove the standard black cell border when clicking on cell?

    when you click on a cell , excel automatically puts a black border around it to show which cell your clicking on.

    can you remove that? so it doesn't do that.. so that when I double click on a cell to open a file (via previous written code) it wont display the black box where im clicking??

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: can you remove the standard black cell border when clicking on cell?

    Far as I know you can't, perhaps look at using a button rather than double clicking a cell to open the file?

  3. #3
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: can you remove the standard black cell border when clicking on cell?

    When you open a new workbook Sheet1 A1 is always activated. You could activate A1 as the first piece of code you run & disguise it that way

  4. #4
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    i don't think I have explained what I mean properly.

    when you click on any cell. Microsoft automatically puts the black border around it which includes the little dot on the right hand bottom corner to drag etc.. can you stop that border from showing??

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: can you remove the standard black cell border when clicking on cell?


    It depends on the purpose !

    For example, see EnableSelection worksheet property …

  6. #6
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    sorry I don't understand what you mean and the purpose is... I literally just don't want to see it when I click lol ..aesthetic purpose

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: can you remove the standard black cell border when clicking on cell?

    Hi, I don't think you can turn it off, like I said in post #2 - depending on what you are doing there might be a workaround, for example, .enableselection will prevent you from selecting the cells altogether.

    I would suggest just keeping the border, any solution will be more hassle than it's worth for an aesthetic purpose.

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: can you remove the standard black cell border when clicking on cell?

    Quote Originally Posted by Muzza86 View Post
    so that when I double click on a cell to open a file
    (via previous written code) it wont display the black box where im clicking??
    If your code uses an event, you can place the active cell elsewhere as Philb1 wrote …

  9. #9
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    appreciate the replies. but you seem way above my level. I don't know how to code that

  10. #10
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: can you remove the standard black cell border when clicking on cell?

    If the worksheet has an object like a textbox or chart, you can activate a cell behind one of them when the sheet opens. You won't see any activated cells then
    Right click a Sheet1 tab, select view code & past the code below in. Insert a textbox over J5, click somewhere on the sheet so you see the horrendous black outline , click another sheet tab & then click Sheet1 tab & the activated cell is hidden
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    ok that's great and that does work.

    thanks,

    however, I was wondering if it was possible to never have it appear. e.g. that works, but when I then click on cell it appears again.

    is there a way I can code it so that if I click a1 - that box appears around aa1? and drag it down.. so that anything I click it doesn't appear (well it does but off screen)

  12. #12
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    obviously it wouldn't be like this.. but to generalise. e.g.

    if a1 is clicked. aa1 shows selction border.

  13. #13
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: can you remove the standard black cell border when clicking on cell?

    I wouldn't think so, though you could activate the cell behind a chart after any event has happened on the sheet.

  14. #14
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: can you remove the standard black cell border when clicking on cell?


    Maybe not any event but just in the double clic event …

  15. #15
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: can you remove the standard black cell border when clicking on cell?

    I guess ive reached the conclusion that many other above reached before me - its not worth the hassle lol

    cheers guys

+ 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. Remove Cell Border and Drag Handle
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2011, 01:28 PM
  2. Remove row by clicking cell
    By saslotteroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2011, 06:33 AM
  3. SpinButton Black Border - How to remove?
    By adgjqetuo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-12-2009, 08:20 AM
  4. [SOLVED] How do I change the format/cell/border/automatic color to black
    By tanya in forum Excel General
    Replies: 1
    Last Post: 03-06-2006, 04:10 PM
  5. Replies: 0
    Last Post: 01-12-2005, 10:50 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