我希望宏在 C 列(在工作表“Tracker”上)从上到下运行,以查找与“Waiting”、“Deferred”、“New”或“Pending”文本匹配的任何单元格。
每次找到匹配项时,我都想在工作表“X”上运行一个带有地址的网络查询:
" http://efm/telecom/engineeringWorkOrders/viewEWOStatusLog.aspx?ewonumber= " + C 列匹配单元格中 A 列的对应值。
If (in Sheet "Tracker") Range("C" & CurRow).Value is "New" Then
Run a web query in Sheet "X" (Starting in cell A1) with the address: "http://efm/telecom/engineeringWorkOrders/viewEWOStatusLog.aspx?ewonumber=" & Range("A" & CurRow).Value