作者:乔山办公网日期:
返回目录:excel表格制作
1、这个Excel表中点击某单元格的时候能凸知显出整行和列
2、在Excel表上方的工具栏中点击“视图”选项。
3、在“视图”下道方点击“阅读模式”的三角下拉线
4、点击阅读模式的下拉线后会跳出很多内颜色来,然后选择容自己想要凸显的颜色
5、选择好颜色后,我们再单击Excel表的任意单元格,此时我们看到该单元格的行和列都显示出来了,这样我们看数据也会方便很多
WPS的方法是视图——阅读模式,自己也可以点开设置喜欢的颜色,如果想取消也是视图——点击阅读模式。
WPS不需要设置代码。
按ALT+F11,输入如下代码(建议复e5a48de588b6e799bee5baa6332制粘贴,不易出现手误):
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,直到出现满意的颜色。以下是截图:
你正处于阅读模式,点击一下就OK了。