作家
登录

jscript之Read an Excel Spreadsheet

作者: 来源:www.28hudong.com 2013-03-30 03:25:29 阅读 我要评论

Description Demonstration script that reads the values stored in a spreadsheet named C:ScriptsNew_users.xls. Script Code复制代码 代码如下:Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open _ ("C:ScriptsNew_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

  推荐阅读

  div+css实现鼠标放上去,背景跟图片都会变化。

New Document ul{ list-style:none; } a{ padding-left:1.5em;font-size:12px;height:23px;line-height:23px;color:gray;text-decoration:none>>>详细阅读


本文标题:jscript之Read an Excel Spreadsheet

地址:http://www.17bianji.com/kaifa2/JS/30352.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)