Hide the cell selection box in Excel

给你一囗甜甜゛ 提交于 2019-12-25 09:27:42

问题


I was wondering if there was any way to hide which cell you have selected within excel (for presentation purposes). I want the cursor itself (to navigate), but I want the box that highlights which cell i am clicking on invisible if possible.

Thanks!


回答1:


If you're using a button object on your worksheet, it shouldn't highlight any cell. If you're using a cell as a "button", your best bet would be to hide and not use column A on your worksheet and then create a module:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range("A1").Select
End Sub

which will select the now hidden cell A1, and hopefully no one notices...




回答2:


What I do is put the Selection Box in a Hidden Range. That effectively "hides" it from the user, because it is part of a range that cannot be seen.



来源:https://stackoverflow.com/questions/44160665/hide-the-cell-selection-box-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!