运行时错误424.需要对象

时间:2018-01-25 17:32:19

标签: excel excel-vba vba

以下是我的代码。在运行它时,我收到消息:

  

"运行时错误424.需要对象"。

Sub test()
Dim ws as Worksheet, Sr as Range, c as Range
 Set ws = Activesheet

   With ws
    Set Sr = Range(.Cells(2,2), .Cells(10,2))
    For Each c in Sr
     If c.Value= "a" Then c.Offset(0,1).Value = "b"
    Next
   End with
End Sub

1 个答案:

答案 0 :(得分:-1)

我认为K.Davis有答案

node ../www/app.js
相关问题