手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >jscript之Read an Excel Spreadsheet
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】相关文章:

jQuery切换所有复选框选中状态的方法

srcElement表格样式

kindeditor编辑器点中图片滚动条往上顶的bug

javascript中eval解析JSON字符串

3张图片循环组和(很有动感)

浅析javascript函数表达式

html下载本地

JavaScript基于setTimeout实现计数的方法

浅谈javascript的call()、apply()、bind()的用法

奇妙的Javascript图片放大镜

精品推荐
分类导航