Login | |
|
 |
RE: Array Increment - 5/18/2007 5:59:30 AM
|
|
 |
|
| |
mcds99
Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
|
Same results. It never gets to the second element in the array...
_____________________________
Sam Keep it Simple Make it Fun KiSMiF
|
|
| |
|
|
|
 |
RE: Array Increment - 5/22/2007 5:24:06 AM
|
|
 |
|
| |
mcds99
Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
|
Very strange... SET ObjXls = CreateObject("Excel.Application") ObjXls.Workbooks.open XlsPathI For i = 0 to Ubound(TabName) ObjSht = TabName(i) wscript.echo ObjSht SET ObjWbk = objXls.ActiveWorkbook.Worksheets(ObjSht) wscript.echo ObjSht WScript.Sleep(500) wscript.echo ObjSht It increments ObjSht to the next IP but never Gets to the Do While??? I'm going to Put the Do While in a function and see... Do while ObjWbk.Cells(iRow, 1).Value <> "" ClmA = Trim(ObjWbk.Cells(iRow, 1).Value) ClmB = Trim(ObjWbk.Cells(iRow, 2).Value) ClmC = Trim(ObjWbk.Cells(iRow, 3).Value) Loop Next
_____________________________
Sam Keep it Simple Make it Fun KiSMiF
|
|
| |
|
|
|
 |
RE: Array Increment - 5/22/2007 5:59:20 AM
|
|
 |
|
| |
mcds99
Posts: 441
Score: 4
Joined: 2/28/2006
Status: offline
|
OMG! iRow value... IP V4 networks are 256 - 2 addresses long 254, after the first workbook iRow was set to 255 so the pointer was at the end of the next work sheet. DOE!
_____________________________
Sam Keep it Simple Make it Fun KiSMiF
|
|
| |
|
|
|
|
|