jscript之Read an Excel Spreadsheet
摘要:DescriptionDemonstrationscriptthatreadsthevaluesstoredinaspreadsheetna...
Description
Demonstrationscriptthatreadsthevaluesstoredinaspreadsheet
namedC:ScriptsNew_users.xls.
ScriptCode
复制代码 代码如下:
SetobjExcel=CreateObject("Excel.Application")
SetobjWorkbook=objExcel.Workbooks.Open_
("C:ScriptsNew_users.xls")
intRow=2
DoUntilobjExcel.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
【jscript之Read an Excel Spreadsheet】相关文章:
★ 浅谈javascript的call()、apply()、bind()的用法
★ 简介JavaScript中toUpperCase()方法的使用