VBA更改工作表范围内的单元格内容

时间:2012-11-10 09:39:55

标签: excel-vba vba excel

我写了这段代码,如果匹配'if'语句,它应该超过2张并更改数据。

出于某种原因,它适用于第一张纸,但不适用于第二张纸。有什么想法吗?

   Sheets("Open - Software Evaluation").Select
   For iRow = 2 To 100
          If Cells(iRow, "E") = "Under Software Evaluation/Fix" Then
             Cells(iRow, "E") = "Evaluation - R&D"
             Else     
           End If
   Next iRow

   Sheets("Open - Pending Client Review").Select
   For iRow = 2 To 100
   If Cells(iRow, "E") = "Pending Client Review/Approval" Then
       Cells(iRow, "E") = "Client Review/Approval"
   Else    
   End If
   Next iRow

0 个答案:

没有答案