Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
excel 2003 vba宏_Excel_Vba - Fatal编程技术网

excel 2003 vba宏

excel 2003 vba宏,excel,vba,Excel,Vba,我试图在excel 2003中编写一个宏,它执行以下操作: 从给定范围内的多个单元格(例如a11:z20),高亮显示单元格 根据其变化的单元格值(ex 60至100),9-10个不同的条件。false的值不会突出显示。您是指像这样的函数吗 Sub FillCells() Dim myCells As Range For Each myCells In Range("A11:Z20").Cells If myCells.Value >= 60 And myCells.Value &l

我试图在excel 2003中编写一个宏,它执行以下操作: 从给定范围内的多个单元格(例如a11:z20),高亮显示单元格
根据其变化的单元格值(ex 60至100),9-10个不同的条件。false的值不会突出显示。

您是指像这样的函数吗

Sub FillCells()
Dim myCells As Range
For Each myCells In Range("A11:Z20").Cells
    If myCells.Value >= 60 And myCells.Value <= 100 Then
        myCells.Interior.Color = vbYellow
    End If
Next myCells
End Sub
子填充单元格()
暗淡的菌丝体
对于范围内的每个菌丝体(“A11:Z20”)。细胞

如果MyStudio.Value>=60和MyStudio.ValueVTRAVE,如果这个答案解决了你的问题,那么你应该考虑把它标记为“接受”(通过使用答案旁边的复选标记)。