源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jscript之Read an Excel Spreadsheet

  • 时间:2020-08-12 17:00 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jscript之Read an Excel Spreadsheet
Description Demonstration script that reads the values stored in a spreadsheet  named C:\Scripts\New_users.xls.  [b]Script Code[/b]
[u]复制代码[/u] 代码如下:
Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open _     ("C:\Scripts\New_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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部