本帖最后由 nzl1116 于 2013-6-16 13:43 编辑
xujinhua 发表于 2013-6-1 18:31 
自己顶!!!!!!!!!!!!
;;;返回指定Excel文件指定编号的一行值 - (defun GetExcelData (ExcFile Bianhao / ExcObj WBKs
- XlsFile ActSht Range Cells return
- return0 EveryRow First
- )
- (setq ExcObj (vlax-get-or-create-object "Excel.Application")
- WBKs (vlax-get-property ExcObj 'WorkBooks)
- XlsFile (vlax-invoke-method WBKs 'open ExcFile)
- ActSht (vlax-get-property XlsFile 'ActiveSheet)
- Range (vlax-get-property ActSht 'usedRange)
- EveryRow (vlax-get-property Range 'Rows)
- return nil
- First nil
- )
|