PrivateSub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Cells.FormatConditions.Delete
With Target.EntireColumn
.FormatConditions.Add xlExpression, , "=true"
.FormatConditions(1).Interior.ColorIndex = 23
End With
With Target.EntireRow
.FormatConditions.Add xlExpression, , "=true"
.FormatConditions(2).Interior.ColorIndex = 27

文章插图
End With
End

文章插图
【excel横竖十字光标的简单介绍】Sub
推荐阅读
- 怎样使用excel做表格 怎样用excel做表格?
- excel一个单元格内容拆分到多个单元格行 excel一个单元格内容拆分到多个单元格
- 怎么在excel方框里面打钩,excel表格方框里选择是否怎么打勾?
- excel表格如何排名次 Excel表格如何计算排名呢
- Excel怎么样把高分改为优秀
- 十字花科蔬菜包括哪些 十字花科蔬菜
- 如何启用宏vba功能 如何启用宏
- 唯美短句子十字以内励志 十字以内的唯美短句子
- Excel表格如何实现全选的操作技巧,EXcel表格如何快速批量复制粘贴的方法?
- excel用函数求出平均分和总分,excel怎么用round函数算平均分?