搜索
首页 电脑/网络 软件

鼠标选中的地方EXCEL表格自动变颜色,如保更改颜色

我想在EXCEL中鼠标选中的地方变成红色

全部回答

2011-06-16

0 0

    需要编写vba程序 Private Sub Worksheet_SelectionChange(ByVal Target As Excel。Range) On Error Resume Next Cells。
  FormatConditions。  Delete iColor = Int(50 * Rnd() + 2) With Target。EntireRow。
  FormatConditions 。Delete 。Add xlExpression, , "TRUE" 。  Item(1)。
  Interior。ColorIndex = iColor End With With Target。EntireColumn。FormatConditions 。
  
  Delete 。  Add xlExpression, , "TRUE" 。Item(1)。Interior。ColorIndex = iColor End With End Sub 。

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
软件
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
互联网
反病毒
软件
软件
多媒体软件
系统软件
办公软件
网络软件
图像处理软件
举报
举报原因(必选):
取消确定举报