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

JS选项卡动态替换banner图片路径的方法

奇妙的Javascript图片放大镜

自适应图片大小的弹出窗口

百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换

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

JavaScript对传统文档对象模型的支持

javascript中createElement的两种创建方式

深入浅出理解javaScript原型链

简介JavaScript中toUpperCase()方法的使用

showModelessDialog()使用详解

精品推荐
分类导航