程序就是分割一串字符,然后用其中一个字符串“NEW-REJ-HK“”作为find函数的查找关键值
Sub test_click()
textline = "TC_NO=1,Action=NEW-REJ-HK ,Case=0497 ,Order_ID=YYY1,Result=Fail"
textline = Replace(textline, "=", ",")
textline = Split(textline, ",")
myrow = Workbooks("DBMTS_RTVM_SCFR_April_Release.xls").Sheets("Regression Test").Cells.Find(what:=textline(3), LookIn:=xlValues, lookat:=xlWhole).Row
End Sub
运行报错
run-time erro '91' :
Object variable or with block varible not set
一只萌萌小番薯