当我们使用excel单元格来查看数据时,有时会遇到一个问题,即在浏览过程中容易忘记当前选中的单元格是哪一个。为了解决这一问题,我们可以启用excel中的阅读模式。一旦开启该模式,点击某个单元格后,它将显示为十字形图标,如下图所示:

在Office Excel中设置的方法如下:
打开Excel文件,按下ALT+F11键,这将打开Microsoft Visual Basic窗口。
-
在新建的窗口中输入以下代码:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.EntireColumn.Address = Target.Address Then Cells.Interior.ColorIndex = xlNone Exit Sub End If If Target.EntireRow.Address = Target.Address Then Cells.Interior.ColorIndex = xlNone Exit Sub End If Cells.Interior.ColorIndex = xlNone Rows(Selection.Row & ":" & Selection.Row + Selection.Rows.Count - 1).Interior.ColorIndex = 10 Columns(Selection.Column).Resize(, Selection.Columns.Count).Interior.ColorIndex = 10 End Sub用户可以根据个人喜好调整
ColorIndex
值以获得满意的颜色效果。以下是设置后的截图:
对于WPS Excel,设置步骤如下:
首先切换到“视图”选项卡;
-
在此界面里,找到并点击“阅读模式”,这样就能激活阅读模式了,具体可参考下图:

以上就是关于如何让Excel中点击单元格显示十字的操作指南,如果你也有类似的需求,不妨按照上述步骤试一试!











