 - (defun c:excel_add_sheet() ;增加一个sheet
- (setq excelapp0 (vlax-get-object "Excel.Application"))
- (setq activeworkbook0 (vlax-get-property excelapp0 'Activeworkbook))
- (setq sheets (vlax-get-property activeworkbook0 'Sheets))
- (setq newsheet (vlax-invoke-method sheets 'add))
- )
|