Guest User

Untitled

a guest
Dec 14th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Set objExcel = CreateObject("Excel.Application")
  2. objExcel.Visible = True Set
  3. objWorkbook = objExcel.Workbooks.Open("C:ScriptsTest.xls")
  4. Set objWorksheet = objWorkbook.Worksheets(1)
  5. Set objRange = objWorksheet.Range("B1").EntireColumn
  6. i = 1
  7.  
  8. Do Until objExcel.Cells(i, 1).Value = ""
  9. strName = objExcel.Cells(i, 1).Value
  10. Set objSearch = objRange.Find(strName)
  11. If objSearch Is Nothing Then
  12. Wscript.Echo strName & " was not found."
  13. Else
  14. Wscript.Echo strName & " was found."
  15. End If
  16. i = i + 1
  17. Loop
Add Comment
Please, Sign In to add comment