Excel随意选定区域背景色太淡,怎么加深底色
1、 1,按ALT+F11键,弹出框
2、2,VBAProject--单击需要修改背景色的表单,复制如下代码:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
On Error Resume Next
Cells.FormatConditions.Delete
iColor = 35
With Target.FormatConditions
.Delete
.Add xlExpression, , "TRUE"
.Item(1).Interior.ColorIndex = iColor
End With
End Sub
3、点击保存,退出。随意选定区域背景色加深了
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:140
阅读量:168
阅读量:171
阅读量:20
阅读量:93