爱问知识人 爱问教育 医院库

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

首页

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

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

提交回答
好评回答
  • 2011-06-16 09:36:52
      需要编写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 。

    泰***

    2011-06-16 09:36:52

  • 软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):