首页 热点资讯 义务教育 高等教育 出国留学 考研考公

excel搜索关键字使其所在单元格所在的整行高亮,需要详细步骤,excel小白...

发布网友

我来回答

1个回答

热心网友

行与列都高亮的方法:

按ALT+F11,在右边输入如下代码:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Cells.Interior.ColorIndex = xlNone

    Rows(Selection.Row & ":" & Selection.Row + Selection.Rows.Count - 1).Interior.ColorIndex = 35

    Columns(Selection.Column).Resize(, Selection.Columns.Count).Interior.ColorIndex = 20

End Sub

以下为效果图:

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com