不是给了源码了吗.稍微改下 - (setq app (vlax-get-or-create-object "excel.application"))
- (setq sheet (vlax-get app 'ActiveSheet) )
- (setq range (vlax-get-property app 'Selection))
- (setq i 0)
- (repeat 5
- (vlax-put-property range 'value2 (strcat "你好,混蛋!+" (itoa (setq i(1+ i)))))
- (setq range (vlax-get-property sheet "Range"(strcat (chr (+ 64 (vlax-get range 'Column)))(itoa(1+ (vlax-get range 'Row))))))
- )
|