小编use*_*267的帖子

突出显示具有数值的单元格

我只想用数字突出显示单元格.此宏还突出显示带有文本的单元格.

Sub high()
    Dim ws As Worksheet
    Dim yourrange As Range

    Set ws = ActiveSheet

    For Each yourrange In ws.Cells.SpecialCells(xlCellTypeConstants)
        yourrange.Interior.Color = 65535
    Next yourrange
End Sub
Run Code Online (Sandbox Code Playgroud)

excel vba excel-vba

5
推荐指数
1
解决办法
1408
查看次数

标签 统计

excel ×1

excel-vba ×1

vba ×1