Hi,
I have written a script that reads value from Excel & "should terminate"
when blank cell is encountered.
However, even the script that is posted on the site does not get terminated
"immediately" when the blank cell or row is encountered.
It terminates only after the blank row is passed for one time.
How can i make the script terminate "immediately" when it encounters blank
row. It should not read that row at all.
Following is a sample script from the site :
=========
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Scripts\New_users.xls")
intRow = 2
Do Until objExcel.Cells(intRow,1).Value = ""
Wscript.Echo "CN: " & objExcel.Cells(intRow, 1).Value
Wscript.Echo "sAMAccountName: " & objExcel.Cells(intRow, 2).Value
Wscript.Echo "GivenName: " & objExcel.Cells(intRow, 3).Value
Wscript.Echo "LastName: " & objExcel.Cells(intRow, 4).Value
intRow = intRow + 1
Loop
objExcel.Quit
=============
Any help on terminating immediately after it encounters blank row would be
much appreciated.
thanks in advance ...