我目前正在使用这个基本代码来将单元格的值除以1000:
Sub Divide_by_1000()
Dim cell As Range
For Each cell In Selection
cell = cell / 1000
Next
End Sub
但我想知道是否可以更改这些行,使代码仅在单元格未以黄色突出显示时将单元格除以1000。有人知道如何做到这一点吗?非常感谢。
由于我想要“除以1000”的单元格非常随机地分布,所以我需要手动选择那些我不想除以1000的单元格,并将它们突出显示为黄色。但是我想知道是否有一种代码可以过滤掉那些没有用黄色突出显示的,然后将它们除以1000。谢谢你。
1条答案
按热度按时间vuktfyat1#
分割高亮