更改突出显示颜色Excel 2007
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了更改突出显示颜色Excel 2007相关的知识,希望对你有一定的参考价值。
Use this code to change the default highlight color for a cell in excel 2007. Right click on the sheet name and click view code, Paste this code into the module that comes up.
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Static OldCell As Range If Not OldCell Is Nothing Then OldCell.Interior.ColorIndex = xlColorIndexNone End If Target.Interior.ColorIndex = 6 'yellow Set OldCell = Target End Sub
以上是关于更改突出显示颜色Excel 2007的主要内容,如果未能解决你的问题,请参考以下文章