点击高亮显示工作表代码

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Columns().Interior.ColorIndex = 0

    x = ActiveCell.Column

    Columns(x).Interior.ColorIndex = 36

    y = ActiveCell.Row

    Rows(y).Interior.ColorIndex = 36

End Sub

教程技巧 2021-08-14 11:11:55 通过 网页 浏览(5)

共有0条评论!

发表评论

更换一道题!